input: implement keypad application mode

This commit also replaces the previous (temporary) key map with a much
more complete one.
This commit is contained in:
Daniel Eklöf 2019-07-09 14:27:26 +02:00
parent 9b5c044b29
commit 3dbef02dac
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 489 additions and 112 deletions

6
vt.c
View file

@ -639,13 +639,11 @@ esc_dispatch(struct terminal *term, uint8_t final)
break;
case '=':
/* Other half of xterm's smkx */
LOG_WARN("unimplemented: keypad mode change");
term->keypad_keys_mode = KEYPAD_APPLICATION;
break;
case '>':
/* Other half of xterm's rmkx */
LOG_WARN("unimplemented: keypad mode change");
term->keypad_keys_mode = KEYPAD_NUMERICAL;
break;
default: