mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-08 08:20:59 -04: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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'M':
|
||||||
|
term_reverse_index(term);
|
||||||
|
break;
|
||||||
|
|
||||||
case '0': {
|
case '0': {
|
||||||
/* Configure G0-G3 to use special chars + line drawing */
|
/* Configure G0-G3 to use special chars + line drawing */
|
||||||
char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'M':
|
|
||||||
/* ri - reverse index (scroll reverse) */
|
|
||||||
term_scroll_reverse(term, 1);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case '=':
|
case '=':
|
||||||
term->keypad_keys_mode = KEYPAD_APPLICATION;
|
term->keypad_keys_mode = KEYPAD_APPLICATION;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue