Browse Source

[settings] Refer to online documentation for settings help

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
fa6182e5f4
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      src/hci/tui/settings_ui.c

+ 9
- 2
src/hci/tui/settings_ui.c View File

@@ -40,13 +40,14 @@ FILE_LICENCE ( GPL2_OR_LATER );
40 40
 #define CPAIR_SELECT	2
41 41
 #define CPAIR_EDIT	3
42 42
 #define CPAIR_ALERT	4
43
+#define CPAIR_URL	5
43 44
 
44 45
 /* Screen layout */
45 46
 #define TITLE_ROW		1
46 47
 #define SETTINGS_LIST_ROW	3
47 48
 #define SETTINGS_LIST_COL	1
48
-#define SETTINGS_LIST_ROWS	16
49
-#define INFO_ROW		20
49
+#define SETTINGS_LIST_ROWS	15
50
+#define INFO_ROW		19
50 51
 #define ALERT_ROW		22
51 52
 #define INSTRUCTION_ROW		22
52 53
 #define INSTRUCTION_PAD "     "
@@ -346,6 +347,7 @@ static void draw_info_row ( struct setting_widget *widget ) {
346 347
 
347 348
 	/* Draw nothing unless this row represents a setting */
348 349
 	clearmsg ( INFO_ROW );
350
+	clearmsg ( INFO_ROW + 1 );
349 351
 	if ( ! widget->row.setting )
350 352
 		return;
351 353
 
@@ -359,6 +361,10 @@ static void draw_info_row ( struct setting_widget *widget ) {
359 361
 	attron ( A_BOLD );
360 362
 	msg ( INFO_ROW, "%s - %s", buf, widget->row.setting->description );
361 363
 	attroff ( A_BOLD );
364
+	color_set ( CPAIR_URL, NULL );
365
+	msg ( ( INFO_ROW + 1 ), "http://ipxe.org/cfg/%s",
366
+	      widget->row.setting->name );
367
+	color_set ( CPAIR_NORMAL, NULL );
362 368
 }
363 369
 
364 370
 /**
@@ -555,6 +561,7 @@ int settings_ui ( struct settings *settings ) {
555 561
 	init_pair ( CPAIR_SELECT, COLOR_WHITE, COLOR_RED );
556 562
 	init_pair ( CPAIR_EDIT, COLOR_BLACK, COLOR_CYAN );
557 563
 	init_pair ( CPAIR_ALERT, COLOR_WHITE, COLOR_RED );
564
+	init_pair ( CPAIR_URL, COLOR_CYAN, COLOR_BLUE );
558 565
 	color_set ( CPAIR_NORMAL, NULL );
559 566
 	erase();
560 567
 	

Loading…
Cancel
Save