Browse Source

[settings] Hide cursor when not actively editing a setting

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
b7a0a128ff
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/hci/tui/settings_ui.c

+ 2
- 0
src/hci/tui/settings_ui.c View File

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

Loading…
Cancel
Save