mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
csi: implement VPA (vertical line position absolute)
This commit is contained in:
parent
44206b49d4
commit
0cf1253ac0
1 changed files with 9 additions and 0 deletions
9
csi.c
9
csi.c
|
|
@ -246,6 +246,15 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
case 'c':
|
case 'c':
|
||||||
return write(term->ptmx, "\033[?6c", 5) == 5;
|
return write(term->ptmx, "\033[?6c", 5) == 5;
|
||||||
|
|
||||||
|
case 'd': {
|
||||||
|
int row = term->vt.params.idx > 0 ? term->vt.params.v[0].value : 1;
|
||||||
|
if (row == 0)
|
||||||
|
row = 1;
|
||||||
|
|
||||||
|
grid_cursor_to(&term->grid, row - 1, term->grid.cursor.col);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 'm':
|
case 'm':
|
||||||
return csi_sgr(term);
|
return csi_sgr(term);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue