mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: implement reverse scrolling (terminfo 'ri')
This currently duplicates the code paths for DAMAGE_SCROLL; there are many similarities between the two, but also major differences...
This commit is contained in:
parent
c0a9f9e6b2
commit
fbf0db621c
5 changed files with 132 additions and 28 deletions
5
vt.c
5
vt.c
|
|
@ -567,6 +567,11 @@ esc_dispatch(struct terminal *term, uint8_t final)
|
|||
#endif
|
||||
|
||||
switch (final) {
|
||||
case 'M':
|
||||
/* ri - reverse index (scroll reverse) */
|
||||
grid_scroll_reverse(&term->grid, 1);
|
||||
break;
|
||||
|
||||
case '=':
|
||||
/* Other half of xterm's smkx */
|
||||
LOG_WARN("ignoring ESC with final %c", final);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue