summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
diff options
context:
space:
mode:
authorMichael Brown2011-03-23 19:23:42 +0100
committerMichael Brown2011-03-23 19:24:15 +0100
commitfa6182e5f4abbfd99f7661e5fd16659ffb4041a5 (patch)
tree65561d41d874faa4ef82ca5e38e67f23bca5af6c /src/hci/tui
parent[settings] Match terminology used elsewhere (diff)
downloadipxe-fa6182e5f4abbfd99f7661e5fd16659ffb4041a5.tar.gz
ipxe-fa6182e5f4abbfd99f7661e5fd16659ffb4041a5.tar.xz
ipxe-fa6182e5f4abbfd99f7661e5fd16659ffb4041a5.zip
[settings] Refer to online documentation for settings help
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui')
-rw-r--r--src/hci/tui/settings_ui.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index b2f7d672..2638656d 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -40,13 +40,14 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define CPAIR_SELECT 2
#define CPAIR_EDIT 3
#define CPAIR_ALERT 4
+#define CPAIR_URL 5
/* Screen layout */
#define TITLE_ROW 1
#define SETTINGS_LIST_ROW 3
#define SETTINGS_LIST_COL 1
-#define SETTINGS_LIST_ROWS 16
-#define INFO_ROW 20
+#define SETTINGS_LIST_ROWS 15
+#define INFO_ROW 19
#define ALERT_ROW 22
#define INSTRUCTION_ROW 22
#define INSTRUCTION_PAD " "
@@ -346,6 +347,7 @@ static void draw_info_row ( struct setting_widget *widget ) {
/* Draw nothing unless this row represents a setting */
clearmsg ( INFO_ROW );
+ clearmsg ( INFO_ROW + 1 );
if ( ! widget->row.setting )
return;
@@ -359,6 +361,10 @@ static void draw_info_row ( struct setting_widget *widget ) {
attron ( A_BOLD );
msg ( INFO_ROW, "%s - %s", buf, widget->row.setting->description );
attroff ( A_BOLD );
+ color_set ( CPAIR_URL, NULL );
+ msg ( ( INFO_ROW + 1 ), "http://ipxe.org/cfg/%s",
+ widget->row.setting->name );
+ color_set ( CPAIR_NORMAL, NULL );
}
/**
@@ -555,6 +561,7 @@ int settings_ui ( struct settings *settings ) {
init_pair ( CPAIR_SELECT, COLOR_WHITE, COLOR_RED );
init_pair ( CPAIR_EDIT, COLOR_BLACK, COLOR_CYAN );
init_pair ( CPAIR_ALERT, COLOR_WHITE, COLOR_RED );
+ init_pair ( CPAIR_URL, COLOR_CYAN, COLOR_BLUE );
color_set ( CPAIR_NORMAL, NULL );
erase();