Browse Source

[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>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
1d38168064
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/core/main.c

+ 3
- 1
src/core/main.c View File

48
 	if ( BANNER_TIMEOUT <= 0 )
48
 	if ( BANNER_TIMEOUT <= 0 )
49
 		return 0;
49
 		return 0;
50
 
50
 
51
-	return ( prompt ( "\nPress Ctrl-B for the iPXE command line...",
51
+	/* Prompt user */
52
+	printf ( "\n" );
53
+	return ( prompt ( "Press Ctrl-B for the iPXE command line...",
52
 			  ( BANNER_TIMEOUT * 100 ), CTRL_B ) == 0 );
54
 			  ( BANNER_TIMEOUT * 100 ), CTRL_B ) == 0 );
53
 }
55
 }
54
 
56
 

Loading…
Cancel
Save