diff options
author | Michael Brown | 2014-08-06 16:11:38 +0200 |
---|---|---|
committer | Michael Brown | 2014-08-06 16:11:38 +0200 |
commit | b17d95394c539d013e925d28c6258cc104a1f0f9 (patch) | |
tree | 22f5c92a7a06d95be8c60ac28fe4db804671f4f0 | |
parent | [efi] Support displaying and hiding cursor (diff) | |
download | ipxe-b17d95394c539d013e925d28c6258cc104a1f0f9.tar.gz ipxe-b17d95394c539d013e925d28c6258cc104a1f0f9.tar.xz ipxe-b17d95394c539d013e925d28c6258cc104a1f0f9.zip |
[readline] Ensure cursor is visible when prompting for input
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/hci/readline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hci/readline.c b/src/hci/readline.c index d67980b2..40aa5978 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 ) ); |