summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-26 17:59:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-26 17:59:47 +0000
commit4c271da1cc0acb1a0ec7015f8388d67085299d0d (patch)
tree053b7f4e2c09fc829bd1c1834409f910f4d68024 /usr.bin/tmux/input-keys.c
parent01b0efb7ab8ec5de5c9b853af8c2748ca2b0ff81 (diff)
Not all terminals swap CSI and SS3 on ctrl, so remove that.
Also mark the rxvt special-cases as such until terminfo is updated to have kLFT5, kRIT5 etc.
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r--usr.bin/tmux/input-keys.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index c382752fa5b..285eac3d75c 100644
--- a/usr.bin/tmux/input-keys.c
+++ b/usr.bin/tmux/input-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input-keys.c,v 1.12 2009/10/26 17:46:33 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.13 2009/10/26 17:59:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -95,7 +95,10 @@ struct input_key_ent input_keys[] = {
{ KEYC_PPAGE|KEYC_CTRL, "\033[5^", 0 },
{ KEYC_BTAB, "\033[Z", 0 },
- /* Arrow keys. Cursor versions must come first. */
+ /*
+ * Arrow keys. Cursor versions must come first. The codes are toggled
+ * between CSI and SS3 versions when ctrl is pressed.
+ */
{ KEYC_UP|KEYC_CTRL, "\033[A", INPUTKEY_CURSOR },
{ KEYC_DOWN|KEYC_CTRL, "\033[B", INPUTKEY_CURSOR },
{ KEYC_RIGHT|KEYC_CTRL, "\033[C", INPUTKEY_CURSOR },