From: Michael Brown Date: Sun, 21 Oct 2012 01:30:19 +0000 (-0700) Subject: [autoboot] Avoid excess backspacing after displaying Ctrl-B prompt X-Git-Tag: v1.20.1~1619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d381680647ad7484a765533dcff37387ff01c65;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/core/main.c b/src/core/main.c index 9fd4a76ff..9ee31d2db 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 ); }