snprintf(entry, sizeof(entry), "%*s", (int)len, no);
memcpy(entry, sbox, MIN(len - 1, m_strlen(sbox)));
- addnstr(entry, len);
+ waddnstr(stdscr, entry, len);
if (shortened)
p_delete(&sbox);
/* draw vertical delimiter */
SETCOLOR (MT_COLOR_SIDEBAR);
for (i = 0; i < LINES-1; i++) {
- move (i, SidebarWidth - delim_len);
+ wmove (stdscr, i, SidebarWidth - delim_len);
if (!m_strcmp(SidebarDelim, "|"))
- addch (ACS_VLINE);
+ waddch (stdscr, ACS_VLINE);
else
- addstr (NONULL (SidebarDelim));
+ waddstr (stdscr, NONULL (SidebarDelim));
}
/* fill "gaps" at top+bottom */
* gap with spaces to get bg color
*/
if (option(OPTSTATUSONTOP) || option(OPTHELP)) {
- move(0,i);
- addch(' ');
+ 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)) {
- move(LINES-2,i);
- addch(' ');
+ wmove(stdscr, LINES-2,i);
+ waddch(stdscr, ' ');
}
}
SETCOLOR (MT_COLOR_NORMAL);
else
SETCOLOR (MT_COLOR_NORMAL);
- move (line, 0);
+ wmove (stdscr, line, 0);
line += make_sidebar_entry (tmp->path, i, SidebarWidth-delim_len);
}
/* fill with blanks to bottom */
memset(&blank, ' ', sizeof(blank));
for (; line < last_line; line++) {
- move (line, 0);
- addnstr (blank, SidebarWidth-delim_len);
+ wmove (stdscr, line, 0);
+ waddnstr (stdscr, blank, SidebarWidth-delim_len);
}
return 0;
}