wmove (main_w, 0, 0);
wclrtobot (main_w);
- SETCOLOR(main_w, MT_COLOR_STATUS);
- wmove (main_w, LINES - 2, 0);
- mutt_paddstr (main_w, getmaxx(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);
menu->offset = 1;
menu->pagelen = LINES - 3;
{
static short prev_show_value = -1;
int x, y, line;
- char blank[STRING];
WINDOW *sw;
/* initialize first time */
return 0;
getmaxyx(sw, y, x);
- memset(&blank, ' ', sizeof(blank));
-
- wmove(sw, 0, 0);
- SETCOLOR(sw, MT_COLOR_STATUS);
- waddnstr(sw, blank, x);
+ SETCOLOR(sw, MT_COLOR_SIDEBAR);
+ mvwhline(sw, 0, 0, ACS_HLINE, x - 1);
+ mvwaddch(sw, 0, x - 1, ACS_TTEE);
line = 1;
for (int i = calc_boundaries(); i < Incoming.len && line < y - 1; i++) {
while (line < y - 1) {
SETCOLOR(sw, MT_COLOR_NORMAL);
- waddnstr(sw, blank, x - 1);
+ whline(sw, ' ', x - 1);
SETCOLOR(sw, MT_COLOR_SIDEBAR);
- waddch(sw, ACS_VLINE);
- line++;
+ mvwaddch(sw, line++, x - 1, ACS_VLINE);
}
- SETCOLOR(sw, MT_COLOR_STATUS);
- waddnstr(sw, blank, x);
- SETCOLOR(sw, MT_COLOR_NORMAL);
+ SETCOLOR(sw, MT_COLOR_SIDEBAR);
+ mvwhline(sw, y - 1, 0, ACS_HLINE, x - 1);
+ mvwaddch(sw, y - 1, x - 1, ACS_BTEE);
return 0;
}
int bodyoffset = 1; /* offset of first line of real text */
int statusoffset = 0; /* offset for the status bar */
- int helpoffset = LINES - 2; /* offset for the help bar. */
int bodylen = LINES - 2 - bodyoffset; /* length of displayable area */
MUTTMENU *pager_index = NULL; /* the Pager Index (PI) */
statusoffset = IsHeader (extra) ? indexlen : 0;
bodyoffset = statusoffset + 1;
- helpoffset = LINES - 2;
- bodylen = helpoffset - bodyoffset;
+ bodylen = LINES - 2 - bodyoffset;
- SETCOLOR(main_w, MT_COLOR_STATUS);
- wmove(main_w, helpoffset, 0);
- mutt_paddstr(main_w, getmaxx(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 (Resize != NULL) {