From 04b0f95866d735313d7aeb4bcb07552e1799ab6d Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 20 Nov 2013 10:03:42 +1100 Subject: [PATCH] ui/ncurses: Redraw entire screen with ctrl+L Use wrefresh(curscr) to clean and repaint the entire screen. Signed-off-by: Jeremy Kerr --- ui/ncurses/nc-cui.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c index 5f1a5e4..df727bc 100644 --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -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; -- 2.39.2