aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:38:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:38:08 +0000
commitff6b0fe0115c4a5b3a6db4f532301089d81133e7 (patch)
tree1d1764966b31f2a916e8b1ffa9d9988b47bce1bc /csi.c
parentMerge branch 'no-scrollback-multiplier-on-alt-screen' (diff)
parentinput: add support for modifyOtherKeys=2 (diff)
Merge branch 'modify-other-keys-mode-2'
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/csi.c b/csi.c
index 4a9658f3..becfc142 100644
--- a/csi.c
+++ b/csi.c
@@ -1509,19 +1509,21 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 1: /* modifyCursorKeys */
case 2: /* modifyFunctionKeys */
- case 4: /* modifyOtherKeys */
/* Ignored, we always report modifiers */
- if (value != 2 && value != -1 &&
- !(resource == 4 && value == 1))
- {
- LOG_WARN("unimplemented: %s = %d",
- resource == 1 ? "modifyCursorKeys" :
- resource == 2 ? "modifyFunctionKeys" :
- resource == 4 ? "modifyOtherKeys" : "<invalid>",
- value);
+ if (value != 2 && value != -1) {
+ LOG_WARN(
+ "unimplemented: %s = %d",
+ resource == 1 ? "modifyCursorKeys" :
+ resource == 2 ? "modifyFunctionKeys" : "<invalid>",
+ value);
}
break;
+ case 4: /* modifyOtherKeys */
+ term->modify_other_keys_2 = value == 2;
+ LOG_DBG("modifyOtherKeys=%d", value);
+ break;
+
default:
LOG_WARN("invalid resource %d in %s",
resource, csi_as_string(term, final, -1));