]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Ensure boot editor window is properly painted
authorJeremy Kerr <jk@ozlabs.org>
Tue, 19 Nov 2013 07:03:40 +0000 (18:03 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 05:13:15 +0000 (13:13 +0800)
We're not currently drawing the window title correctly; we need to draw
the main_ncw for this to hit the terminal.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-boot-editor.c

index bd2bf6e6abe9898779b9a1c364191957534b4874..86fba4d8d2da3ef62957e15fc8c017e5d4f1fa45 100644 (file)
@@ -513,6 +513,7 @@ struct boot_editor *boot_editor_init(struct cui *cui,
        boot_editor->scr.frame.rtitle = NULL;
        boot_editor->scr.frame.help = talloc_strdup(boot_editor,
                        "Enter=accept");
+       nc_scr_frame_draw(&boot_editor->scr);
 
        if (item) {
                struct pb_boot_data *bd = cod_from_item(item)->bd;
@@ -533,6 +534,7 @@ struct boot_editor *boot_editor_init(struct cui *cui,
        boot_editor_setup_widgets(boot_editor, sysinfo);
 
        boot_editor_layout_widgets(boot_editor);
+       wrefresh(boot_editor->scr.main_ncw);
 
        return boot_editor;
 }