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:
Daniel Eklöf 2019-07-10 16:05:19 +02:00
parent 885089d146
commit ea1b618b6d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

9
vt.c
View file

@ -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 : '(';