11 * Symbolic names for some standard ASCII characters
43 #define BACKSPACE CTRL_H
49 * Special keys outside the normal ASCII range
52 * These values are chosen to facilitate easy conversion from a
53 * received ANSI escape sequence to a KEY_XXX constant. The KEY_XXX
54 * constant is simply 0x100 plus the first byte following CSI in the
55 * ANSI escape sequence. For example, KEY_LEFT is 0x144, since a left
56 * cursor key is transmitted as the ANSI sequence "^[[D".
59 #define KEY_ANSI( character ) ( 0x100 + (character) )
62 #define KEY_UP KEY_ANSI ( 'A' )
63 #define KEY_DOWN KEY_ANSI ( 'B' )
64 #define KEY_RIGHT KEY_ANSI ( 'C' )
65 #define KEY_LEFT KEY_ANSI ( 'D' )
66 #define KEY_END KEY_ANSI ( 'E' )
67 #define KEY_HOME KEY_ANSI ( 'H' )
68 #define KEY_PPAGE KEY_ANSI ( '5' )
69 #define KEY_NPAGE KEY_ANSI ( '6' )
72 /* Not in the [KEY_MIN,KEY_MAX] range; terminals seem to send these as
73 * normal ASCII values.
75 #define KEY_BACKSPACE BACKSPACE
76 #define KEY_ENTER ENTER
78 #endif /* _GPXE_KEYS_H */