瀏覽代碼

[readline] Ensure cursor is visible when prompting for input

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
b17d95394c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/hci/readline.c

+ 3
- 0
src/hci/readline.c 查看文件

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…
取消
儲存