diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-12-13 15:18:07 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-31 08:46:34 +0800 |
commit | a68cae0b9d1b165eef07011011a163b906e0587c (patch) | |
tree | c82f8e44b1034c979dc6d3da929bac5a5b7ebe4b /ui/ncurses/nc-sysinfo.c | |
parent | 649de37c20f56749ff02c751656787bf2c3d0024 (diff) | |
download | talos-petitboot-a68cae0b9d1b165eef07011011a163b906e0587c.tar.gz talos-petitboot-a68cae0b9d1b165eef07011011a163b906e0587c.zip |
ui/ncurses: Add help to sysinfo screen
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-sysinfo.c')
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index e907e3d..aa1daea 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -34,6 +34,8 @@ struct sysinfo_screen { struct text_screen text_scr; }; +extern const char *sysinfo_help_text; + struct nc_scr *sysinfo_screen_scr(struct sysinfo_screen *screen) { return text_screen_scr(&screen->text_scr); @@ -111,6 +113,8 @@ struct sysinfo_screen *sysinfo_screen_init(struct cui *cui, screen = talloc_zero(cui, struct sysinfo_screen); text_screen_init(&screen->text_scr, cui, "Petitboot System Information", on_exit); + text_screen_set_help(&screen->text_scr, + "System Information", sysinfo_help_text); sysinfo_screen_update(screen, sysinfo); |