aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-19 15:25:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-19 15:25:06 +0000
commit8485cdaaaa5f26d3c12dbffd07fd9061ed10f56a (patch)
tree347f99bceb4fe7a9008233217844434c3c2fedb2 /csi.c
parentwayland: remove selection_override_modmask member (diff)
csi: implement CSI > 4n (reset modifyOtherKeys)
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index d3a76e7f..57cae6b3 100644
--- a/csi.c
+++ b/csi.c
@@ -1497,6 +1497,24 @@ csi_dispatch(struct terminal *term, uint8_t final)
}
break; /* final == 'm' */
+ case 'n': {
+ int resource = vt_param_get(term, 0, 2); /* Default is modifyFuncionKeys */
+ switch (resource) {
+ case 0: /* modifyKeyboard */
+ case 1: /* modifyCursorKeys */
+ case 2: /* modifyFunctionKeys */
+ break;
+
+ case 4: /* modifyOtherKeys */
+ /* We don’t support fully disabling modifyOtherKeys,
+ * but simply revert back to mode ‘1’ */
+ term->modify_other_keys_2 = false;
+ LOG_DBG("modifyOtherKeys=1");
+ break;
+ }
+ break;
+ }
+
case 'u': {
int flags = vt_param_get(term, 0, 0) & KITTY_KBD_SUPPORTED;