aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-21 13:34:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-21 13:34:10 +0000
commitdba3bb820d6e745697ef6f3b7680dd51ab19118d (patch)
treeef2206e436d86394d8ab9632b86620487b2148b5 /csi.c
parentcsi: fix line clearing; the erase range 'end' is exclusive (diff)
csi: fix \e[B - it should move the cursor *down*, not up.
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/csi.c b/csi.c
index 5723ea81..05838fb0 100644
--- a/csi.c
+++ b/csi.c
@@ -225,7 +225,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 'B': {
int count = term->vt.params.idx > 0 ? term->vt.params.v[0].value : 1;
- grid_cursor_up(&term->grid, count);
+ grid_cursor_down(&term->grid, count);
+ //LOG_DBG("CSI: B: row = %d, col = %d", term->grid.cursor.row, term->grid.cursor.col);
break;
}