From b17d95394c539d013e925d28c6258cc104a1f0f9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 6 Aug 2014 15:11:38 +0100 Subject: [readline] Ensure cursor is visible when prompting for input Signed-off-by: Michael Brown --- src/hci/readline.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hci') 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 ) ); -- cgit v1.2.3-55-g7522