summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-26 17:59:46 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-26 17:59:46 +0000
commite831649b64014960777e27375a44000bbabf2ee8 (patch)
tree6ceb6f02689dde3441739d4283df839019bc0ed9 /input-keys.c
parentfd2ef18a7004fb35dbe40b99765609189827a6f8 (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 'input-keys.c')
-rw-r--r--input-keys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index c276c498..627b22cf 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -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 },