aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vt.c b/vt.c
index 95df06d2..29073b83 100644
--- a/vt.c
+++ b/vt.c
@@ -158,9 +158,10 @@ action(struct terminal *term, enum action action, uint8_t c)
LOG_DBG("execute: 0x%02x", c);
switch (c) {
case '\n':
- if (term->grid.cursor.row == term->grid.rows - 1)
+ if (term->grid.cursor.row == term->grid.rows - 1) {
grid_scroll(&term->grid, 1);
- else
+ /* TODO: simulate \r? */
+ } else
grid_cursor_down(&term->grid, 1);
break;