void mutt_endwin(const char *msg)
{
if (!option(OPTNOCURSES)) {
- CLEARLINE(main_w, LINES - 1);
+ CLEARLINE(stdscr, LINES - 1);
if (sidebar_w) {
delwin(sidebar_w);
}
#endif
- wattrset(stdscr, A_NORMAL);
mutt_refresh();
endwin();
}
void ui_layout_init(void)
{
+ erase();
main_w = newwin(LINES - 1, COLS, 0, 0);
SETCOLOR(main_w, MT_COLOR_NORMAL);
- wclear(main_w);
mutt_error = mutt_curses_error;
mutt_message = mutt_curses_message;
}