mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
vt: \EM now calls term_reverse_index() instead of always scrolling one line
This commit is contained in:
parent
3bb726eb78
commit
885089d146
1 changed files with 4 additions and 5 deletions
9
vt.c
9
vt.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue