From dba3bb820d6e745697ef6f3b7680dd51ab19118d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 21 Jun 2019 15:34:10 +0200 Subject: [PATCH] csi: fix \e[B - it should move the cursor *down*, not up. --- csi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }