csi: implement CSI S and CSI T (scroll up/down)

This commit is contained in:
Daniel Eklöf 2019-07-04 19:39:23 +02:00
parent befb437411
commit 669ef1a07a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

8
csi.c
View file

@ -460,6 +460,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
case 'S':
term_scroll(term, param_get(term, 0, 1));
break;
case 'T':
term_scroll_reverse(term, param_get(term, 0, 1));
break;
case 'X': {
/* Erase chars */
int count = min(