From 1d381680647ad7484a765533dcff37387ff01c65 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 20 Oct 2012 18:30:19 -0700 Subject: [PATCH] [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 --- src/core/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); }