diff options
author | 2009-10-26 17:59:46 +0000 | |
---|---|---|
committer | 2009-10-26 17:59:46 +0000 | |
commit | 3d89a41eba1e2ab8fb6bad8175130f4f9d40f43f (patch) | |
tree | 5d9550c2e3db39d34eda6f305c83833e2cf8d944 /usr.bin/tmux/input-keys.c | |
parent | update WiFi Link 6000 product ids. (diff) | |
download | wireguard-openbsd-3d89a41eba1e2ab8fb6bad8175130f4f9d40f43f.tar.xz wireguard-openbsd-3d89a41eba1e2ab8fb6bad8175130f4f9d40f43f.zip |
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.c | 7 |
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 }, |