mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
vt: implement \ED and \EE
'\ED' is just like '\n'; move the cursor down to the next row, or if it's at the bottom, scroll up one row. '\EE' is just like '\n\r'
This commit is contained in:
parent
885089d146
commit
ea1b618b6d
1 changed files with 9 additions and 0 deletions
9
vt.c
9
vt.c
|
|
@ -615,10 +615,19 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'D':
|
||||||
|
term_linefeed(term);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'M':
|
case 'M':
|
||||||
term_reverse_index(term);
|
term_reverse_index(term);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'E':
|
||||||
|
term_linefeed(term);
|
||||||
|
term_cursor_left(term, term->cursor.col);
|
||||||
|
break;
|
||||||
|
|
||||||
case '0': {
|
case '0': {
|
||||||
/* Configure G0-G3 to use special chars + line drawing */
|
/* Configure G0-G3 to use special chars + line drawing */
|
||||||
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue