diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-03-07 19:17:51 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-07 19:22:20 +0000 |
commit | 9e98e4b9b890ceabfc1f95224015f4748e59ea35 (patch) | |
tree | df85cbecb5691700160bd3fd15269ffd3e627996 /src/include/ipxe/keys.h | |
parent | a281c4080bf268fa08d0b6001ab081c53a225035 (diff) | |
download | ipxe-9e98e4b9b890ceabfc1f95224015f4748e59ea35.tar.gz |
[bios] Recognise scancodes for F5-F12 inclusive
The function keys F5-F12 all conform to the same ANSI pattern as the
other "special" keys that we currently recognise. Add these key
definitions, and shrink the representation of the ANSI sequences in
bios_console.c to compensate.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/keys.h')
-rw-r--r-- | src/include/ipxe/keys.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/keys.h b/src/include/ipxe/keys.h index dba65ec3f..8b13550b9 100644 --- a/src/include/ipxe/keys.h +++ b/src/include/ipxe/keys.h @@ -70,7 +70,14 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define KEY_DC KEY_ANSI ( 3, '~' ) /**< Delete */ #define KEY_PPAGE KEY_ANSI ( 5, '~' ) /**< Page up */ #define KEY_NPAGE KEY_ANSI ( 6, '~' ) /**< Page down */ +#define KEY_F5 KEY_ANSI ( 15, '~' ) /**< F5 */ +#define KEY_F6 KEY_ANSI ( 17, '~' ) /**< F6 */ +#define KEY_F7 KEY_ANSI ( 18, '~' ) /**< F7 */ #define KEY_F8 KEY_ANSI ( 19, '~' ) /**< F8 (for PXE) */ +#define KEY_F9 KEY_ANSI ( 20, '~' ) /**< F9 */ +#define KEY_F10 KEY_ANSI ( 21, '~' ) /**< F10 */ +#define KEY_F11 KEY_ANSI ( 23, '~' ) /**< F11 */ +#define KEY_F12 KEY_ANSI ( 24, '~' ) /**< F12 */ /* Not in the [KEY_MIN,KEY_MAX] range; terminals seem to send these as * normal ASCII values. |