From e596e8e66b014161116c207daa8d42cff849bfd2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 24 Jul 2014 15:13:24 +0800 Subject: ui/ncurses: Move menu initialisation to cui code We'll want to re-initialise the petitboot main menu (when the language is changed), which we can't do if the items are populated entirely from the main() function. This change moves the menu initilisation to the cui code, we we can re-init when necessary. Signed-off-by: Jeremy Kerr --- ui/ncurses/nc-cui-help.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ui/ncurses/nc-cui-help.c (limited to 'ui/ncurses/nc-cui-help.c') diff --git a/ui/ncurses/nc-cui-help.c b/ui/ncurses/nc-cui-help.c new file mode 100644 index 0000000..ac690c5 --- /dev/null +++ b/ui/ncurses/nc-cui-help.c @@ -0,0 +1,20 @@ + +#include "nc-helpscreen.h" + +struct help_text main_menu_help_text = define_help_text( +"From the main menu screen, select a boot option. The options displayed are \ +available on the system and the network.\n\ +\n\ +To select a boot option, press Enter.\n\ +\n\ +To make changes to an existing option, type E (edit).\n\ +\n\ +To add a new boot option, type N (new).\n\ +\n\ +To display information about the system, including the MAC addresses of each \ +network interface, type I (information).\n\ +\n\ +To make changes to the system configuration, type C (configure).\n\ +\n\ +To close the Petitboot interface, type X (exit).\n" +); -- cgit v1.2.1