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

2
main.c
View file

@ -666,6 +666,8 @@ main(int argc, const char *const *argv)
.quit = false,
.term = {
.ptmx = posix_openpt(O_RDWR | O_NOCTTY),
.decckm = DECCKM_CSI,
.keypad_mode = KEYPAD_NUMERICAL, /* TODO: verify */
.vt = {
.state = 1, /* STATE_GROUND */
},