david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[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>
This commit is contained in:
Michael Brown 2012-10-20 18:30:19 -07:00
parent 0e7819d298
commit 1d38168064
1 changed files with 3 additions and 1 deletions

View File

@ -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 );
}