aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-11-01 12:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2022-11-01 12:01:10 +0000
commit36896f6dd0d49d91bcc9c398c68a33818626532c (patch)
tree81d7d54d4e135093784aa1e6c857e04b35c7b141 /tty-keys.c
parent9dd1f442c5a7f1d8d480476f11bc62cceab2019a (diff)
parent2d08235987efa1e2f9c932c4a5c8a0200b4804c1 (diff)
downloadrtmux-36896f6dd0d49d91bcc9c398c68a33818626532c.tar.gz
rtmux-36896f6dd0d49d91bcc9c398c68a33818626532c.tar.bz2
rtmux-36896f6dd0d49d91bcc9c398c68a33818626532c.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index bb9ec231..db82754f 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -208,6 +208,9 @@ static const struct tty_default_key_raw tty_default_raw_keys[] = {
/* Paste keys. */
{ "\033[200~", KEYC_PASTE_START },
{ "\033[201~", KEYC_PASTE_END },
+
+ /* Extended keys. */
+ { "\033[1;5Z", '\011'|KEYC_CTRL|KEYC_SHIFT|KEYC_EXTENDED },
};
/* Default xterm keys. */
@@ -974,7 +977,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
log_debug("%s: extended key %.*s is %llx (%s)", c->name,
(int)*size, buf, nkey, key_string_lookup_key(nkey, 1));
}
- *key = nkey;
+ *key = nkey|KEYC_EXTENDED;
return (0);
}