Skip to content

Commit 1ae9ade

Browse files
committed
[efi] Add missing definitions for function key scancodes
Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 6de378a commit 1ae9ade

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/interface/efi/efi_console.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ static const char *ansi_sequences[] = {
239239
[SCAN_DELETE] = "[3~",
240240
[SCAN_PAGE_UP] = "[5~",
241241
[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~",
242250
/* EFI translates some (but not all) incoming escape sequences
243251
* via the serial console into equivalent scancodes. When it
244252
* doesn't recognise a sequence, it helpfully(!) translates

0 commit comments

Comments
 (0)