Sync OpenBSD patchset 451:

Tidy up table.
This commit is contained in:
Tiago Cunha 2009-10-28 22:54:00 +00:00
parent 4f7e669271
commit 5350212e53

View File

@ -1,4 +1,4 @@
/* $Id: input-keys.c,v 1.32 2009-10-28 22:53:03 tcunha Exp $ */ /* $Id: input-keys.c,v 1.33 2009-10-28 22:54:00 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -67,16 +67,16 @@ struct input_key_ent input_keys[] = {
{ KEYC_PPAGE, "\033[5~", INPUTKEY_CTRL }, { KEYC_PPAGE, "\033[5~", INPUTKEY_CTRL },
{ KEYC_BTAB, "\033[Z", INPUTKEY_CTRL }, { KEYC_BTAB, "\033[Z", INPUTKEY_CTRL },
/* Arrow keys. Cursor versions must come first. */ /* Arrow keys. Cursor versions must come first .*/
{ KEYC_UP | KEYC_CTRL, "\033Oa", 0 }, { KEYC_UP|KEYC_CTRL, "\033Oa", 0 },
{ KEYC_DOWN | KEYC_CTRL, "\033Ob", 0 }, { KEYC_DOWN|KEYC_CTRL, "\033Ob", 0 },
{ KEYC_RIGHT | KEYC_CTRL, "\033Oc", 0 }, { KEYC_RIGHT|KEYC_CTRL, "\033Oc", 0 },
{ KEYC_LEFT | KEYC_CTRL, "\033Od", 0 }, { KEYC_LEFT|KEYC_CTRL, "\033Od", 0 },
{ KEYC_UP | KEYC_SHIFT, "\033[a", 0 }, { KEYC_UP|KEYC_SHIFT, "\033[a", 0 },
{ KEYC_DOWN | KEYC_SHIFT, "\033[b", 0 }, { KEYC_DOWN|KEYC_SHIFT, "\033[b", 0 },
{ KEYC_RIGHT | KEYC_SHIFT, "\033[c", 0 }, { KEYC_RIGHT|KEYC_SHIFT,"\033[c", 0 },
{ KEYC_LEFT | KEYC_SHIFT, "\033[d", 0 }, { KEYC_LEFT|KEYC_SHIFT, "\033[d", 0 },
{ KEYC_UP, "\033OA", INPUTKEY_CURSOR }, { KEYC_UP, "\033OA", INPUTKEY_CURSOR },
{ KEYC_DOWN, "\033OB", INPUTKEY_CURSOR }, { KEYC_DOWN, "\033OB", INPUTKEY_CURSOR },
@ -88,7 +88,7 @@ struct input_key_ent input_keys[] = {
{ KEYC_RIGHT, "\033[C", 0 }, { KEYC_RIGHT, "\033[C", 0 },
{ KEYC_LEFT, "\033[D", 0 }, { KEYC_LEFT, "\033[D", 0 },
/* Keypad keys. Keypad versions must come first. */ /* Keypad keys. Keypad versions must come first.*/
{ KEYC_KP_SLASH, "/", INPUTKEY_KEYPAD }, { KEYC_KP_SLASH, "/", INPUTKEY_KEYPAD },
{ KEYC_KP_STAR, "*", INPUTKEY_KEYPAD }, { KEYC_KP_STAR, "*", INPUTKEY_KEYPAD },
{ KEYC_KP_MINUS, "-", INPUTKEY_KEYPAD }, { KEYC_KP_MINUS, "-", INPUTKEY_KEYPAD },
@ -105,6 +105,7 @@ struct input_key_ent input_keys[] = {
{ KEYC_KP_ENTER, "\n", INPUTKEY_KEYPAD }, { KEYC_KP_ENTER, "\n", INPUTKEY_KEYPAD },
{ KEYC_KP_ZERO, "0", INPUTKEY_KEYPAD }, { KEYC_KP_ZERO, "0", INPUTKEY_KEYPAD },
{ KEYC_KP_PERIOD, ".", INPUTKEY_KEYPAD }, { KEYC_KP_PERIOD, ".", INPUTKEY_KEYPAD },
{ KEYC_KP_SLASH, "\033Oo", 0 }, { KEYC_KP_SLASH, "\033Oo", 0 },
{ KEYC_KP_STAR, "\033Oj", 0 }, { KEYC_KP_STAR, "\033Oj", 0 },
{ KEYC_KP_MINUS, "\033Om", 0 }, { KEYC_KP_MINUS, "\033Om", 0 },