vt: \EM now calls term_reverse_index() instead of always scrolling one line

This commit is contained in:
Daniel Eklöf 2019-07-10 16:05:01 +02:00
parent 3bb726eb78
commit 885089d146
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

9
vt.c
View file

@ -615,6 +615,10 @@ esc_dispatch(struct terminal *term, uint8_t final)
break;
}
case 'M':
term_reverse_index(term);
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 : '(';
@ -633,11 +637,6 @@ esc_dispatch(struct terminal *term, uint8_t final)
break;
}
case 'M':
/* ri - reverse index (scroll reverse) */
term_scroll_reverse(term, 1);
break;
case '=':
term->keypad_keys_mode = KEYPAD_APPLICATION;
break;