]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[readline] Ensure cursor is visible when prompting for input
authorMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2014 14:11:38 +0000 (15:11 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 6 Aug 2014 14:11:38 +0000 (15:11 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/readline.c

index d67980b2cbef68534cd0858656dd59bb859bc4b8..40aa5978718e25b6a27068e93ce0a578a93b117f 100644 (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 ) );