[readline] Ensure cursor is visible when prompting for input

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-08-06 15:11:38 +01:00
parent f1b520dbad
commit b17d95394c

View File

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