aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-11 17:26:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-01 18:38:36 +0000
commit7dcc885a7acd673980478318da12468716e7d10f (patch)
tree9ad37badaaf794b856b43b86ef2c8c3bde9d4ca1 /terminal.h
parentinput: use XKB_MOD_NAME_* macros instead of hard-coded strings (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index eede87c1..c8c62966 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;