vt: implement DECCKM (cursor key sends either SS3 or CSI escapes)

This commit is contained in:
Daniel Eklöf 2019-06-23 14:12:20 +02:00
parent 9e47c89880
commit 35e5fa1f76
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 44 additions and 34 deletions

4
csi.c
View file

@ -319,7 +319,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
for (size_t i = 0; i < term->vt.params.idx; i++) {
switch (term->vt.params.v[i].value) {
case 1:
LOG_WARN("unimplemented: smkx");
term->decckm = DECCKM_SS3;
break;
case 1049:
@ -344,7 +344,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
for (size_t i = 0; i < term->vt.params.idx; i++) {
switch (term->vt.params.v[i].value) {
case 1:
LOG_WARN("unimplemented: rmkx");
term->decckm = DECCKM_CSI;
break;
case 1049: