summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-08 22:28:02 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-08 22:28:02 +0000
commit622d4def2283e6fdc13dae33d8814e2af5169a65 (patch)
treeac4a0bc015e6001521350d2e1c239e4eaed5f032 /input-keys.c
parent678dffa840870a332b1c9136964ed4422e4d414d (diff)
Give up the farce of caring about any keys aside from the ones in the screen termcap and the ones termcap doesn't handle that we hardcode manually.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/input-keys.c b/input-keys.c
index cc7e8f8f..19a42198 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -1,4 +1,4 @@
-/* $Id: input-keys.c,v 1.16 2009-01-07 22:52:33 nicm Exp $ */
+/* $Id: input-keys.c,v 1.17 2009-01-08 22:28:02 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -31,6 +31,7 @@ struct {
const char *data;
int flags;
} input_keys[] = {
+ /* Function keys. */
{ KEYC_F1, "\033OP", 0 },
{ KEYC_F2, "\033OQ", 0 },
{ KEYC_F3, "\033OR", 0 },
@@ -43,12 +44,12 @@ struct {
{ KEYC_F10, "\033[21~", 0 },
{ KEYC_F11, "\033[23~", 0 },
{ KEYC_F12, "\033[24~", 0 },
- { KEYC_DC, "\033[3~", 0 },
{ KEYC_IC, "\033[2~", 0 },
- { KEYC_NPAGE, "\033[6~", 0 },
- { KEYC_PPAGE, "\033[5~", 0 },
+ { KEYC_DC, "\033[3~", 0 },
{ KEYC_HOME, "\033[1~", 0 },
{ KEYC_END, "\033[4~", 0 },
+ { KEYC_NPAGE, "\033[6~", 0 },
+ { KEYC_PPAGE, "\033[5~", 0 },
/* Arrow keys. Cursor versions must come first. */
{ KEYC_UP, "\033OA", INPUTKEY_CURSOR },