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:
Daniel Eklöf 2019-06-23 17:16:52 +02:00
parent c0a9f9e6b2
commit fbf0db621c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 132 additions and 28 deletions

5
vt.c
View file

@ -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);