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 10 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
 	if ( prompt )
266
 	if ( prompt )
267
 		printf ( "%s", prompt );
267
 		printf ( "%s", prompt );
268
 
268
 
269
+	/* Ensure cursor is visible */
270
+	printf ( "\033[?25h" );
271
+
269
 	/* Initialise editable string */
272
 	/* Initialise editable string */
270
 	memset ( &string, 0, sizeof ( string ) );
273
 	memset ( &string, 0, sizeof ( string ) );
271
 	init_editstring ( &string, buf, sizeof ( buf ) );
274
 	init_editstring ( &string, buf, sizeof ( buf ) );

Loading…
Cancel
Save