From: Michael Brown Date: Mon, 2 Dec 2013 17:23:51 +0000 (+0000) Subject: [settings] Hide cursor when not actively editing a setting X-Git-Tag: v1.20.1~1339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7a0a128ff878174ceb5ca49ee83e5e93941f7d8;p=thirdparty%2Fipxe.git [settings] Hide cursor when not actively editing a setting Signed-off-by: Michael Brown --- diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c index f7efbbb4d..77ef8108e 100644 --- a/src/hci/tui/settings_ui.c +++ b/src/hci/tui/settings_ui.c @@ -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; } @@ -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 );