-void sidebar_draw_frames (void) {
- ssize_t i,delim_len;
-
- if (!option(OPTMBOXPANE) || SidebarWidth==0)
- return;
-
- delim_len=m_strlen(NONULL(SidebarDelim));
-
- /* draw vertical delimiter */
- SETCOLOR (MT_COLOR_SIDEBAR);
- for (i = 0; i < LINES-1; i++) {
- wmove (stdscr, i, SidebarWidth - delim_len);
- if (!m_strcmp(SidebarDelim, "|"))
- waddch (stdscr, ACS_VLINE);
- else
- waddstr (stdscr, NONULL (SidebarDelim));
- }
-
- /* fill "gaps" at top+bottom */
- SETCOLOR(MT_COLOR_STATUS);
- for (i=0; i<SidebarWidth; i++) {
- /*
- * if we don't have $status_on_top and have $help, fill top
- * gap with spaces to get bg color
- */
- if (option(OPTSTATUSONTOP) || option(OPTHELP)) {
- wmove(stdscr, 0,i);
- waddch(stdscr, ' ');
- }
- /*
- * if we don't have $status_on_top or we have $help, fill bottom
- * gap with spaces to get bg color
- */
- if (!option(OPTSTATUSONTOP) || option(OPTHELP)) {
- wmove(stdscr, LINES-2,i);
- waddch(stdscr, ' ');
- }
- }
- SETCOLOR (MT_COLOR_NORMAL);
-}
-