Skip to content

Commit

Permalink
[autoboot] Avoid excess backspacing after displaying Ctrl-B prompt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Oct 23, 2012
1 parent 0e7819d commit 1d38168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/main.c
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 1d38168

Please sign in to comment.