Przeglądaj źródła

[settings] Hide cursor when not actively editing a setting

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 lat temu
rodzic
commit
b7a0a128ff
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/hci/tui/settings_ui.c

+ 2
- 0
src/hci/tui/settings_ui.c Wyświetl plik

@@ -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 );

Ładowanie…
Anuluj
Zapisz