Browse Source

[efi] Add missing definitions for function key scancodes

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
1ae9adee42
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/interface/efi/efi_console.c

+ 8
- 0
src/interface/efi/efi_console.c View File

@@ -239,6 +239,14 @@ static const char *ansi_sequences[] = {
239 239
 	[SCAN_DELETE] = "[3~",
240 240
 	[SCAN_PAGE_UP] = "[5~",
241 241
 	[SCAN_PAGE_DOWN] = "[6~",
242
+	[SCAN_F5] = "[15~",
243
+	[SCAN_F6] = "[17~",
244
+	[SCAN_F7] = "[18~",
245
+	[SCAN_F8] = "[19~",
246
+	[SCAN_F9] = "[20~",
247
+	[SCAN_F10] = "[21~",
248
+	[SCAN_F11] = "[23~",
249
+	[SCAN_F12] = "[24~",
242 250
 	/* EFI translates some (but not all) incoming escape sequences
243 251
 	 * via the serial console into equivalent scancodes.  When it
244 252
 	 * doesn't recognise a sequence, it helpfully(!) translates

Loading…
Cancel
Save