From 9e98e4b9b890ceabfc1f95224015f4748e59ea35 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 7 Mar 2011 19:17:51 +0000 Subject: [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 --- src/include/ipxe/keys.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') 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. -- cgit v1.2.3-55-g7522