summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2012-10-21 03:30:19 +0200
committerMichael Brown2012-10-23 23:07:50 +0200
commit1d381680647ad7484a765533dcff37387ff01c65 (patch)
tree828fd305430bedffa02d31d20dc6a260263d92c9
parent[efi] Add missing RC_TO_EFIRC() conversion (diff)
downloadipxe-1d381680647ad7484a765533dcff37387ff01c65.tar.gz
ipxe-1d381680647ad7484a765533dcff37387ff01c65.tar.xz
ipxe-1d381680647ad7484a765533dcff37387ff01c65.zip
[autoboot] Avoid excess backspacing after displaying Ctrl-B prompt
Remove the newline from the "Press Ctrl-B..." prompt string, so that prompt() does not attempt to backspace beyond the start of the line. Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/core/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 9fd4a76f..9ee31d2d 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -48,7 +48,9 @@ static int shell_banner ( void ) {
if ( BANNER_TIMEOUT <= 0 )
return 0;
- return ( prompt ( "\nPress Ctrl-B for the iPXE command line...",
+ /* Prompt user */
+ printf ( "\n" );
+ return ( prompt ( "Press Ctrl-B for the iPXE command line...",
( BANNER_TIMEOUT * 100 ), CTRL_B ) == 0 );
}