diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-07-24 15:13:24 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-28 13:50:35 +0800 |
commit | e596e8e66b014161116c207daa8d42cff849bfd2 (patch) | |
tree | 5c32aa7165907d85f1d015c058806d5375d6f28c /ui/ncurses/nc-cui-help.c | |
parent | 0bacabfe38d4e6721d4b32c11c6ef5bff599492c (diff) | |
download | talos-petitboot-e596e8e66b014161116c207daa8d42cff849bfd2.tar.gz talos-petitboot-e596e8e66b014161116c207daa8d42cff849bfd2.zip |
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 <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-cui-help.c')
-rw-r--r-- | ui/ncurses/nc-cui-help.c | 20 |
1 files changed, 20 insertions, 0 deletions
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" +); |