csi: implement 'CNL' - Cursor Next Line

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

6
csi.c
View file

@ -358,6 +358,12 @@ csi_dispatch(struct terminal *term, uint8_t final)
term_cursor_left(term, vt_param_get(term, 0, 1));
break;
case 'E':
/* CNL - Cursor Next Line */
term_cursor_down(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) {