mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
csi: fix \e[B - it should move the cursor *down*, not up.
This commit is contained in:
parent
a537934e4b
commit
dba3bb820d
1 changed files with 2 additions and 1 deletions
3
csi.c
3
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue