Skip to content

Commit

Permalink
[settings] Hide cursor when not actively editing a setting
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 2, 2013
1 parent 936971d commit b7a0a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hci/tui/settings_ui.c
Expand Up @@ -472,6 +472,7 @@ static int main_loop ( struct settings *settings ) {
CPAIR_EDIT : CPAIR_SELECT ), NULL );
draw_setting_row ( &widget );
color_set ( CPAIR_NORMAL, NULL );
curs_set ( widget.row.editing );
redraw = 0;
}

Expand Down Expand Up @@ -583,6 +584,7 @@ int settings_ui ( struct settings *settings ) {
init_pair ( CPAIR_ALERT, COLOR_ALERT_FG, COLOR_ALERT_BG );
init_pair ( CPAIR_URL, COLOR_URL_FG, COLOR_URL_BG );
color_set ( CPAIR_NORMAL, NULL );
curs_set ( 0 );
erase();

rc = main_loop ( settings );
Expand Down

0 comments on commit b7a0a12

Please sign in to comment.