static void separator_display() { int col = get_sep_col(); int row = get_sep_row(); int last_row = row + get_sep_height(); for (; row < last_row; ++row) { wmove(stdscr, row, col); waddch(stdscr, VERT_LINE); wrefresh(stdscr); } }
static void separator_display(int draw) { int x = get_sep_col(); int y = get_sep_row(); int h = y + get_sep_height(); int w = draw ? 1 : 0; /* Make sure our window is created at correct location * (or destroyed if draw == 0) */ create_swindow(&vseparator_win, h, w, y, x); if (vseparator_win) { /* Draw vertical line in window */ swin_wmove(vseparator_win, 0, 0); swin_wvline(vseparator_win, SWIN_SYM_VLINE, h); swin_wnoutrefresh(vseparator_win); } }