mirror of
https://github.com/xcat2/xNBA.git
synced 2025-03-12 15:16:46 +00:00
[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:
parent
0e7819d298
commit
1d38168064
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user