Exemple #1
0
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);
    }
}
Exemple #2
0
static int get_gdb_col(void)
{
    int result;

    switch (cur_split_orientation) {
        case WSO_HORIZONTAL:
            result = 0;
            break;
        case WSO_VERTICAL:
            result = get_sep_col() + get_sep_width();
            break;
    }

    return result;
}
Exemple #3
0
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);
    }
}
Exemple #4
0
static int get_gdb_col(void)
{
    if (cur_split_orientation == SPLIT_VERTICAL)
        return get_sep_col() + get_sep_width();
    return 0;
}