소스 검색

[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…
취소
저장