diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-09 16:48:38 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-10-09 17:40:41 +0800 |
commit | 47bc66a0c744f68a84147b0bd616ab25a242fb70 (patch) | |
tree | 13aad60595c03209847954c0222a37db81f7a85f /ui/ncurses/generic-main.c | |
parent | 8ec7ea724de780a6a428a8485b2760bf1d9e0a4e (diff) | |
download | talos-petitboot-47bc66a0c744f68a84147b0bd616ab25a242fb70.tar.gz talos-petitboot-47bc66a0c744f68a84147b0bd616ab25a242fb70.zip |
ui/ncurses: Display sysinfo type & identifier
Hook into the sysinfo updates to display the type & id at the top of the
petitboot main menu.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/generic-main.c')
-rw-r--r-- | ui/ncurses/generic-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ncurses/generic-main.c b/ui/ncurses/generic-main.c index 9236a80..d0563f0 100644 --- a/ui/ncurses/generic-main.c +++ b/ui/ncurses/generic-main.c @@ -145,8 +145,9 @@ static struct pmenu *pb_mm_init(struct pb_cui *pb_cui) m->on_open = cui_on_open; - m->scr.frame.title = talloc_asprintf(m, + m->scr.frame.ltitle = talloc_asprintf(m, "Petitboot (" PACKAGE_VERSION ")"); + m->scr.frame.rtitle = NULL; m->scr.frame.help = talloc_strdup(m, "ESC=exit, Enter=accept, e=edit, o=open"); m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot"); |