mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 454:
Tidy up table.
This commit is contained in:
parent
98122860cc
commit
a8300b7a44
14
tty-keys.c
14
tty-keys.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tty-keys.c,v 1.33 2009-10-28 22:53:03 tcunha Exp $ */
|
||||
/* $Id: tty-keys.c,v 1.34 2009-10-28 22:56:50 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -39,6 +39,7 @@ struct tty_key_ent {
|
||||
struct tty_key_ent tty_keys[] = {
|
||||
/* Function keys. */
|
||||
{ TTYC_KF1, NULL, KEYC_F1, TTYKEY_CTRL },
|
||||
{ TTYC_KF1, NULL, KEYC_F1, TTYKEY_CTRL },
|
||||
{ TTYC_KF2, NULL, KEYC_F2, TTYKEY_CTRL },
|
||||
{ TTYC_KF3, NULL, KEYC_F3, 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 },
|
||||
|
||||
/*
|
||||
* Numeric keypad. termcap and terminfo are totally confusing for this.
|
||||
* There are definitions for some keypad keys and for function keys,
|
||||
* but these seem to now be used for the real function keys rather than
|
||||
* 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.
|
||||
* Numeric keypad. Just use 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, "\033Oj", KEYC_KP_STAR, TTYKEY_RAW },
|
||||
|
Loading…
x
Reference in New Issue
Block a user