[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>
This commit is contained in:
Michael Brown
2011-03-07 19:17:51 +00:00
parent a281c4080b
commit 9e98e4b9b8
2 changed files with 31 additions and 25 deletions

View File

@@ -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.