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-11-11 17:26:47 +0000
commit2382d6b4487cc9d599578034db8117eb3f1cc75f (patch)
tree9ea2983b5aa354430ccd0c0eed084a3eee9319fc /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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 6a8e340b..5c7a9501 100644
--- a/terminal.h
+++ b/terminal.h
@@ -252,6 +252,7 @@ struct terminal {
bool eight_bit;
} meta;
+ bool num_lock_modifier;
bool bell_is_urgent;
/* Saved DECSET modes - we save the SET state */
@@ -275,6 +276,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 bell_is_urgent:1;
uint32_t alt_screen:1;
} xtsave;