From: Jeremy Kerr Date: Tue, 19 Nov 2013 07:03:40 +0000 (+1100) Subject: ui/ncurses: Ensure boot editor window is properly painted X-Git-Tag: v1.0.0~309 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=inline;h=40d57bee5cf77d836f2d68c440a875fe770cc250;p=petitboot ui/ncurses: Ensure boot editor window is properly painted 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 --- diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c index bd2bf6e..86fba4d 100644 --- a/ui/ncurses/nc-boot-editor.c +++ b/ui/ncurses/nc-boot-editor.c @@ -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; }