diff options
author | Michael Brown | 2012-10-21 03:30:19 +0200 |
---|---|---|
committer | Michael Brown | 2012-10-23 23:07:50 +0200 |
commit | 1d381680647ad7484a765533dcff37387ff01c65 (patch) | |
tree | 828fd305430bedffa02d31d20dc6a260263d92c9 /src/core/main.c | |
parent | [efi] Add missing RC_TO_EFIRC() conversion (diff) | |
download | ipxe-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>
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 4 |
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 ); } |