ui/ncurses: Redraw entire screen with ctrl+L
[petitboot] / ui / ncurses / nc-cui.c
index 5f1a5e4433555b4cb742ed2e2e3341a86760dba8..df727bc7af56092264a1f6281c595ba5be6a972c 100644 (file)
@@ -272,10 +272,8 @@ static bool process_global_keys(struct cui *cui, int key)
 {
        switch (key) {
        case 0xc:
-               if (cui->current && cui->current->main_ncw) {
-                       redrawwin(cui->current->main_ncw);
-                       wrefresh(cui->current->main_ncw);
-               }
+               if (cui->current && cui->current->main_ncw)
+                       wrefresh(curscr);
                return true;
        }
        return false;