csi: implement “CSI ? 1035” - toggle Num Lock override

This adds a num_lock_modifier state to the terminal, and hooks up
“CSI?1035h/l” to toggle it.
This commit is contained in:
Daniel Eklöf 2020-11-11 18:26:47 +01:00
parent 61f4845a59
commit 7dcc885a7a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 12 additions and 0 deletions

View file

@ -250,6 +250,8 @@ struct terminal {
bool eight_bit;
} meta;
bool num_lock_modifier;
/* Saved DECSET modes - we save the SET state */
struct {
uint32_t origin:1;
@ -270,6 +272,7 @@ struct terminal {
uint32_t mouse_urxvt:1;
uint32_t meta_eight_bit:1;
uint32_t meta_esc_prefix:1;
uint32_t num_lock_modifier:1;
uint32_t alt_screen:1;
} xtsave;