summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-12 07:04:24 +0000
committernicm <nicm>2017-06-12 07:04:24 +0000
commit8037159f937def4bb71dbfb8d664a96de794014f (patch)
treeaf92955555dbdf03f4983f50eb4fe48381c3172a /tty-keys.c
parentadcd5aff6fb86036ef736c10b04005da77a465f6 (diff)
Add explicit keys for the bracketed paste sequences, both to avoid mix
ups with other keys and to make logs clearer.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tty-keys.c b/tty-keys.c
index d7797a9c..89745e0c 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -165,6 +165,10 @@ static const struct tty_default_key_raw tty_default_raw_keys[] = {
/* Focus tracking. */
{ "\033[I", KEYC_FOCUS_IN },
{ "\033[O", KEYC_FOCUS_OUT },
+
+ /* Paste keys. */
+ { "\033[200~", KEYC_PASTE_START },
+ { "\033[201~", KEYC_PASTE_END },
};
/* Default terminfo(5) keys. */