summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
diff options
context:
space:
mode:
authorMichael Brown2013-12-02 18:23:51 +0100
committerMichael Brown2013-12-02 18:23:51 +0100
commitb7a0a128ff878174ceb5ca49ee83e5e93941f7d8 (patch)
treef998025fbadda5be689addda98121f854a76dd75 /src/hci/tui
parent[mucurses] Implement curs_set() to control cursor visibility (diff)
downloadipxe-b7a0a128ff878174ceb5ca49ee83e5e93941f7d8.tar.gz
ipxe-b7a0a128ff878174ceb5ca49ee83e5e93941f7d8.tar.xz
ipxe-b7a0a128ff878174ceb5ca49ee83e5e93941f7d8.zip
[settings] Hide cursor when not actively editing a setting
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui')
-rw-r--r--src/hci/tui/settings_ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index f7efbbb4..77ef8108 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 );