mirror of https://github.com/ipxe/ipxe.git
[readline] Ensure cursor is visible when prompting for input
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/20/merge
parent
f1b520dbad
commit
b17d95394c
|
@ -266,6 +266,9 @@ int readline_history ( const char *prompt, const char *prefill,
|
|||
if ( prompt )
|
||||
printf ( "%s", prompt );
|
||||
|
||||
/* Ensure cursor is visible */
|
||||
printf ( "\033[?25h" );
|
||||
|
||||
/* Initialise editable string */
|
||||
memset ( &string, 0, sizeof ( string ) );
|
||||
init_editstring ( &string, buf, sizeof ( buf ) );
|
||||
|
|
Loading…
Reference in New Issue