diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-20 10:03:42 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-22 13:13:15 +0800 |
commit | 04b0f95866d735313d7aeb4bcb07552e1799ab6d (patch) | |
tree | e3a749bb14c4f2e9c549efead0a08a0cbe39c4e6 /ui | |
parent | 40d57bee5cf77d836f2d68c440a875fe770cc250 (diff) | |
download | talos-petitboot-04b0f95866d735313d7aeb4bcb07552e1799ab6d.tar.gz talos-petitboot-04b0f95866d735313d7aeb4bcb07552e1799ab6d.zip |
ui/ncurses: Redraw entire screen with ctrl+L
Use wrefresh(curscr) to clean and repaint the entire screen.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ncurses/nc-cui.c | 6 |
1 files 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; |