mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05: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;
|
||||
}
|
||||
|
||||
case 'D':
|
||||
term_linefeed(term);
|
||||
break;
|
||||
|
||||
case 'M':
|
||||
term_reverse_index(term);
|
||||
break;
|
||||
|
||||
case 'E':
|
||||
term_linefeed(term);
|
||||
term_cursor_left(term, term->cursor.col);
|
||||
break;
|
||||
|
||||
case '0': {
|
||||
/* Configure G0-G3 to use special chars + line drawing */
|
||||
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue