浏览代码

[settings] Hide cursor when not actively editing a setting

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年前
父节点
当前提交
b7a0a128ff
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/hci/tui/settings_ui.c

+ 2
- 0
src/hci/tui/settings_ui.c 查看文件

@@ -472,6 +472,7 @@ static int main_loop ( struct settings *settings ) {
472 472
 				      CPAIR_EDIT : CPAIR_SELECT ), NULL );
473 473
 			draw_setting_row ( &widget );
474 474
 			color_set ( CPAIR_NORMAL, NULL );
475
+			curs_set ( widget.row.editing );
475 476
 			redraw = 0;
476 477
 		}
477 478
 
@@ -583,6 +584,7 @@ int settings_ui ( struct settings *settings ) {
583 584
 	init_pair ( CPAIR_ALERT, COLOR_ALERT_FG, COLOR_ALERT_BG );
584 585
 	init_pair ( CPAIR_URL, COLOR_URL_FG, COLOR_URL_BG );
585 586
 	color_set ( CPAIR_NORMAL, NULL );
587
+	curs_set ( 0 );
586 588
 	erase();
587 589
 	
588 590
 	rc = main_loop ( settings );

正在加载...
取消
保存