From: Michael Brown Date: Wed, 6 Aug 2014 14:11:38 +0000 (+0100) Subject: [readline] Ensure cursor is visible when prompting for input X-Git-Tag: v1.20.1~1084 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b17d95394c539d013e925d28c6258cc104a1f0f9;p=thirdparty%2Fipxe.git [readline] Ensure cursor is visible when prompting for input Signed-off-by: Michael Brown --- diff --git a/src/hci/readline.c b/src/hci/readline.c index d67980b2c..40aa59787 100644 --- a/src/hci/readline.c +++ b/src/hci/readline.c @@ -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 ) );