]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[settings] Hide cursor when not actively editing a setting
authorMichael Brown <mcb30@ipxe.org>
Mon, 2 Dec 2013 17:23:51 +0000 (17:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 2 Dec 2013 17:23:51 +0000 (17:23 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/tui/settings_ui.c

index f7efbbb4d7ac592175d016d839d412e9a39fb5ef..77ef8108e865a8a70481cf50efd7ec9e847b3a8f 100644 (file)
@@ -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 );