csi: implement 'CPL' - Cursor Previous Line

This commit is contained in:
Daniel Eklöf 2019-11-17 11:36:24 +01:00
parent d8708d1105
commit f4be84871f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
csi.c
View file

@ -364,6 +364,12 @@ csi_dispatch(struct terminal *term, uint8_t final)
term_cursor_left(term, term->cursor.point.col);
break;
case 'F':
/* CPL - Cursor Previous Line */
term_cursor_up(term, vt_param_get(term, 0, 1));
term_cursor_left(term, term->cursor.point.col);
break;
case 'g': {
int param = vt_param_get(term, 0, 0);
switch (param) {