瀏覽代碼

[readline] Ensure cursor is visible when prompting for input

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 年之前
父節點
當前提交
b17d95394c
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/hci/readline.c

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

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