- SETCOLOR (MT_COLOR_NORMAL);
- /* wclear(stdscr) doesn't optimize screen redraws */
- wmove (stdscr, 0, 0);
- wclrtobot (stdscr);
-
- SETCOLOR (MT_COLOR_STATUS);
- wmove (stdscr, option (OPTSTATUSONTOP) ? LINES - 2 : 0, SW);
- mutt_paddstr (COLS-SW, "");
- SETCOLOR (MT_COLOR_NORMAL);
+ SETCOLOR(main_w, MT_COLOR_NORMAL);
+ /* wclear() doesn't optimize screen redraws */
+ wmove (main_w, 0, 0);
+ wclrtobot (main_w);
+
+ SETCOLOR(main_w, MT_COLOR_STATUS);
+ wmove (main_w, option (OPTSTATUSONTOP) ? LINES - 2 : 0, 0);
+ mutt_paddstr (main_w, getmaxx(main_w), "");
+ SETCOLOR(main_w, MT_COLOR_NORMAL);