mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +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 )
|
if ( prompt )
|
||||||
printf ( "%s", prompt );
|
printf ( "%s", prompt );
|
||||||
|
|
||||||
|
/* Ensure cursor is visible */
|
||||||
|
printf ( "\033[?25h" );
|
||||||
|
|
||||||
/* Initialise editable string */
|
/* Initialise editable string */
|
||||||
memset ( &string, 0, sizeof ( string ) );
|
memset ( &string, 0, sizeof ( string ) );
|
||||||
init_editstring ( &string, buf, sizeof ( buf ) );
|
init_editstring ( &string, buf, sizeof ( buf ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user