mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
[readline] Ensure cursor is visible when prompting for input
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user