ui/ncurses: Redraw entire screen with ctrl+L
authorJeremy Kerr <jk@ozlabs.org>
Tue, 19 Nov 2013 23:03:42 +0000 (10:03 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 05:13:15 +0000 (13:13 +0800)
Use wrefresh(curscr) to clean and repaint the entire screen.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
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;