Tidy up table.

This commit is contained in:
Nicholas Marriott 2009-10-26 13:41:46 +00:00
parent a0ec4a11ee
commit fcd3b260ac
1 changed files with 67 additions and 71 deletions

View File

@ -39,6 +39,7 @@ struct tty_key_ent {
struct tty_key_ent tty_keys[] = { struct tty_key_ent tty_keys[] = {
/* Function keys. */ /* Function keys. */
{ TTYC_KF1, NULL, KEYC_F1, TTYKEY_CTRL }, { TTYC_KF1, NULL, KEYC_F1, TTYKEY_CTRL },
{ TTYC_KF1, NULL, KEYC_F1, TTYKEY_CTRL },
{ TTYC_KF2, NULL, KEYC_F2, TTYKEY_CTRL }, { TTYC_KF2, NULL, KEYC_F2, TTYKEY_CTRL },
{ TTYC_KF3, NULL, KEYC_F3, TTYKEY_CTRL }, { TTYC_KF3, NULL, KEYC_F3, TTYKEY_CTRL },
{ TTYC_KF4, NULL, KEYC_F4, TTYKEY_CTRL }, { TTYC_KF4, NULL, KEYC_F4, TTYKEY_CTRL },
@ -92,14 +93,9 @@ struct tty_key_ent tty_keys[] = {
{ TTYC_KCUF1, NULL, KEYC_RIGHT, TTYKEY_CTRL }, { TTYC_KCUF1, NULL, KEYC_RIGHT, TTYKEY_CTRL },
/* /*
* Numeric keypad. termcap and terminfo are totally confusing for this. * Numeric keypad. Just use the vt100 escape sequences here and always
* There are definitions for some keypad keys and for function keys, * put the terminal into keypad_xmit mode. Translation of numbers
* but these seem to now be used for the real function keys rather than * mode/applications mode is done in input-keys.c.
* for the keypad keys in application mode (which is different from
* what it says in the termcap file). So, we just hardcode the vt100
* escape sequences here and always put the terminal into keypad_xmit
* mode. Translation of numbers mode/applications mode is done in
* input-keys.c.
*/ */
{ 0, "\033Oo", KEYC_KP_SLASH, TTYKEY_RAW }, { 0, "\033Oo", KEYC_KP_SLASH, TTYKEY_RAW },
{ 0, "\033Oj", KEYC_KP_STAR, TTYKEY_RAW }, { 0, "\033Oj", KEYC_KP_STAR, TTYKEY_RAW },