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
 #define CPAIR_SELECT	2
40
 #define CPAIR_SELECT	2
41
 #define CPAIR_EDIT	3
41
 #define CPAIR_EDIT	3
42
 #define CPAIR_ALERT	4
42
 #define CPAIR_ALERT	4
43
+#define CPAIR_URL	5
43
 
44
 
44
 /* Screen layout */
45
 /* Screen layout */
45
 #define TITLE_ROW		1
46
 #define TITLE_ROW		1
46
 #define SETTINGS_LIST_ROW	3
47
 #define SETTINGS_LIST_ROW	3
47
 #define SETTINGS_LIST_COL	1
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
 #define ALERT_ROW		22
51
 #define ALERT_ROW		22
51
 #define INSTRUCTION_ROW		22
52
 #define INSTRUCTION_ROW		22
52
 #define INSTRUCTION_PAD "     "
53
 #define INSTRUCTION_PAD "     "
346
 
347
 
347
 	/* Draw nothing unless this row represents a setting */
348
 	/* Draw nothing unless this row represents a setting */
348
 	clearmsg ( INFO_ROW );
349
 	clearmsg ( INFO_ROW );
350
+	clearmsg ( INFO_ROW + 1 );
349
 	if ( ! widget->row.setting )
351
 	if ( ! widget->row.setting )
350
 		return;
352
 		return;
351
 
353
 
359
 	attron ( A_BOLD );
361
 	attron ( A_BOLD );
360
 	msg ( INFO_ROW, "%s - %s", buf, widget->row.setting->description );
362
 	msg ( INFO_ROW, "%s - %s", buf, widget->row.setting->description );
361
 	attroff ( A_BOLD );
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
 	init_pair ( CPAIR_SELECT, COLOR_WHITE, COLOR_RED );
561
 	init_pair ( CPAIR_SELECT, COLOR_WHITE, COLOR_RED );
556
 	init_pair ( CPAIR_EDIT, COLOR_BLACK, COLOR_CYAN );
562
 	init_pair ( CPAIR_EDIT, COLOR_BLACK, COLOR_CYAN );
557
 	init_pair ( CPAIR_ALERT, COLOR_WHITE, COLOR_RED );
563
 	init_pair ( CPAIR_ALERT, COLOR_WHITE, COLOR_RED );
564
+	init_pair ( CPAIR_URL, COLOR_CYAN, COLOR_BLUE );
558
 	color_set ( CPAIR_NORMAL, NULL );
565
 	color_set ( CPAIR_NORMAL, NULL );
559
 	erase();
566
 	erase();
560
 	
567
 	

Loading…
Cancel
Save