aboutsummaryrefslogtreecommitdiff
path: root/src/boot.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-03-12 18:12:24 +0100
committerKevin O'Connor <kevin@koconnor.net>2015-03-16 10:34:55 -0400
commita1ac8861049a5ffefc26ca294293ad666954fcc8 (patch)
tree37210ad2da47663ce5671eb2edaf91cd9ac243df /src/boot.c
parent80aae26c9ef060bde15aebd84d0cc79a978706a9 (diff)
downloadseabios-hppa-a1ac8861049a5ffefc26ca294293ad666954fcc8.zip
seabios-hppa-a1ac8861049a5ffefc26ca294293ad666954fcc8.tar.gz
seabios-hppa-a1ac8861049a5ffefc26ca294293ad666954fcc8.tar.bz2
boot: switch default menu key to ESC
On some platforms, F12 may be hard to access; for example, on OS X machines F9-F12 have been intercepted by the OS for a long time, and on newer OS X releases function keys are basically gone for good. Which keys are and are not available depends on the client, not on the server, but only function keys are usually trapped by terminals. Hence, using ESC for the boot menu avoids the problems associated with F12. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'src/boot.c')
-rw-r--r--src/boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot.c b/src/boot.c
index 3aab8d4..d6b1fb7 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -459,8 +459,8 @@ interactive_bootmenu(void)
;
char *bootmsg = romfile_loadfile("etc/boot-menu-message", NULL);
- int menukey = romfile_loadint("etc/boot-menu-key", 0x86);
- printf("%s", bootmsg ?: "\nPress F12 for boot menu.\n\n");
+ int menukey = romfile_loadint("etc/boot-menu-key", 1);
+ printf("%s", bootmsg ?: "\nPress ESC for boot menu.\n\n");
free(bootmsg);
u32 menutime = romfile_loadint("etc/boot-menu-wait", DEFAULT_BOOTMENU_WAIT);