aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
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.c
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.c')
-rw-r--r--terminal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index b9e4528a..d117bf9c 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1047,6 +1047,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.esc_prefix = true,
.eight_bit = true,
},
+ .num_lock_modifier = true,
.bell_is_urgent = conf->bell_is_urgent,
.tab_stops = tll_init(),
.wl = wayl,