Signed-off-by: Pierre Habouzit <madcoder@debian.org>
void ui_layout_init(void)
{
- clear();
+ erase();
main_w = newwin(LINES - 1, COLS, 0, 0);
SETCOLOR(main_w, MT_COLOR_NORMAL);
mutt_error = mutt_curses_error;
void menu_redraw_full (MUTTMENU * menu)
{
SETCOLOR(main_w, MT_COLOR_NORMAL);
- /* wclear() doesn't optimize screen redraws */
- wmove (main_w, 0, 0);
- wclrtobot (main_w);
-
+ werase(main_w);
SETCOLOR(main_w, MT_COLOR_SIDEBAR);
mvwhline(main_w, LINES - 2, 0, ACS_HLINE, getmaxx(main_w));
SETCOLOR(main_w, MT_COLOR_NORMAL);
if (redraw & REDRAW_FULL) {
SETCOLOR(main_w, MT_COLOR_NORMAL);
- /* wclear(main_w) doesn't optimize screen redraws */
- wmove(main_w, 0, 0);
- wclrtobot(main_w);
+ werase(main_w);
if (IsHeader (extra) && Context->vcount + 1 < PagerIndexLines)
indexlen = Context->vcount + 1;