Browse Source

[readline] Ensure cursor is visible when prompting for input

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
b17d95394c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/hci/readline.c

+ 3
- 0
src/hci/readline.c View File

@@ -266,6 +266,9 @@ int readline_history ( const char *prompt, const char *prefill,
266 266
 	if ( prompt )
267 267
 		printf ( "%s", prompt );
268 268
 
269
+	/* Ensure cursor is visible */
270
+	printf ( "\033[?25h" );
271
+
269 272
 	/* Initialise editable string */
270 273
 	memset ( &string, 0, sizeof ( string ) );
271 274
 	init_editstring ( &string, buf, sizeof ( buf ) );

Loading…
Cancel
Save