summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r--usr.bin/tmux/input-keys.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index 2218a36d009..825165450b6 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.5 2009/10/26 13:02:53 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.6 2009/10/26 13:13:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -89,38 +89,38 @@ struct input_key_ent input_keys[] = {
{ KEYC_LEFT, "\033[D", 0 },
/* Keypad keys. Keypad versions must come first. */
- { KEYC_KP0_1, "/", INPUTKEY_KEYPAD },
- { KEYC_KP0_2, "*", INPUTKEY_KEYPAD },
- { KEYC_KP0_3, "-", INPUTKEY_KEYPAD },
- { KEYC_KP1_0, "7", INPUTKEY_KEYPAD },
- { KEYC_KP1_1, "8", INPUTKEY_KEYPAD },
- { KEYC_KP1_2, "9", INPUTKEY_KEYPAD },
- { KEYC_KP1_3, "+", INPUTKEY_KEYPAD },
- { KEYC_KP2_0, "4", INPUTKEY_KEYPAD },
- { KEYC_KP2_1, "5", INPUTKEY_KEYPAD },
- { KEYC_KP2_2, "6", INPUTKEY_KEYPAD },
- { KEYC_KP3_0, "1", INPUTKEY_KEYPAD },
- { KEYC_KP3_1, "2", INPUTKEY_KEYPAD },
- { KEYC_KP3_2, "3", INPUTKEY_KEYPAD },
- { KEYC_KP3_3, "\n", INPUTKEY_KEYPAD }, /* this can be CRLF too? */
- { KEYC_KP4_0, "0", INPUTKEY_KEYPAD },
- { KEYC_KP4_2, ".", INPUTKEY_KEYPAD },
- { KEYC_KP0_1, "\033Oo", 0 },
- { KEYC_KP0_2, "\033Oj", 0 },
- { KEYC_KP0_3, "\033Om", 0 },
- { KEYC_KP1_0, "\033Ow", 0 },
- { KEYC_KP1_1, "\033Ox", 0 },
- { KEYC_KP1_2, "\033Oy", 0 },
- { KEYC_KP1_3, "\033Ok", 0 },
- { KEYC_KP2_0, "\033Ot", 0 },
- { KEYC_KP2_1, "\033Ou", 0 },
- { KEYC_KP2_2, "\033Ov", 0 },
- { KEYC_KP3_0, "\033Oq", 0 },
- { KEYC_KP3_1, "\033Or", 0 },
- { KEYC_KP3_2, "\033Os", 0 },
- { KEYC_KP3_3, "\033OM", 0 },
- { KEYC_KP4_0, "\033Op", 0 },
- { KEYC_KP4_2, "\033On", 0 },
+ { KEYC_KP_SLASH, "/", INPUTKEY_KEYPAD },
+ { KEYC_KP_STAR, "*", INPUTKEY_KEYPAD },
+ { KEYC_KP_MINUS, "-", INPUTKEY_KEYPAD },
+ { KEYC_KP_SEVEN, "7", INPUTKEY_KEYPAD },
+ { KEYC_KP_EIGHT, "8", INPUTKEY_KEYPAD },
+ { KEYC_KP_NINE, "9", INPUTKEY_KEYPAD },
+ { KEYC_KP_PLUS, "+", INPUTKEY_KEYPAD },
+ { KEYC_KP_FOUR, "4", INPUTKEY_KEYPAD },
+ { KEYC_KP_FIVE, "5", INPUTKEY_KEYPAD },
+ { KEYC_KP_SIX, "6", INPUTKEY_KEYPAD },
+ { KEYC_KP_ONE, "1", INPUTKEY_KEYPAD },
+ { KEYC_KP_TWO, "2", INPUTKEY_KEYPAD },
+ { KEYC_KP_THREE, "3", INPUTKEY_KEYPAD },
+ { KEYC_KP_ENTER, "\n", INPUTKEY_KEYPAD },
+ { KEYC_KP_ZERO, "0", INPUTKEY_KEYPAD },
+ { KEYC_KP_PERIOD, ".", INPUTKEY_KEYPAD },
+ { KEYC_KP_SLASH, "\033Oo", 0 },
+ { KEYC_KP_STAR, "\033Oj", 0 },
+ { KEYC_KP_MINUS, "\033Om", 0 },
+ { KEYC_KP_SEVEN, "\033Ow", 0 },
+ { KEYC_KP_EIGHT, "\033Ox", 0 },
+ { KEYC_KP_NINE, "\033Oy", 0 },
+ { KEYC_KP_PLUS, "\033Ok", 0 },
+ { KEYC_KP_FOUR, "\033Ot", 0 },
+ { KEYC_KP_FIVE, "\033Ou", 0 },
+ { KEYC_KP_SIX, "\033Ov", 0 },
+ { KEYC_KP_ONE, "\033Oq", 0 },
+ { KEYC_KP_TWO, "\033Or", 0 },
+ { KEYC_KP_THREE, "\033Os", 0 },
+ { KEYC_KP_ENTER, "\033OM", 0 },
+ { KEYC_KP_ZERO, "\033Op", 0 },
+ { KEYC_KP_PERIOD, "\033On", 0 },
};
/* Translate a key code from client into an output key sequence. */