version 1.11, 2009/09/10 17:16:24 |
version 1.12, 2009/10/12 09:29:58 |
|
|
for (i = 0; i < tty->sx; i++) { |
for (i = 0; i < tty->sx; i++) { |
type = screen_redraw_check_cell(c, i, j); |
type = screen_redraw_check_cell(c, i, j); |
if (type != CELL_INSIDE) { |
if (type != CELL_INSIDE) { |
tty_cursor(tty, i, j, 0, 0); |
tty_cursor(tty, i, j); |
tty_putc(tty, border[type]); |
tty_putc(tty, border[type]); |
} |
} |
} |
} |
|
|
struct tty *tty = &c->tty; |
struct tty *tty = &c->tty; |
struct session *s = c->session; |
struct session *s = c->session; |
struct grid_cell gc; |
struct grid_cell gc; |
u_int idx, px, py, i, j; |
u_int idx, px, py, i, j, xoff, yoff; |
int colour; |
int colour; |
char buf[16], *ptr; |
char buf[16], *ptr; |
size_t len; |
size_t len; |
|
|
return; |
return; |
colour = options_get_number(&s->options, "display-panes-colour"); |
colour = options_get_number(&s->options, "display-panes-colour"); |
|
|
px = wp->sx / 2; |
px = wp->sx / 2; py = wp->sy / 2; |
py = wp->sy / 2; |
xoff = wp->xoff; yoff = wp->yoff; |
|
|
if (wp->sx < len * 6 || wp->sy < 5) { |
if (wp->sx < len * 6 || wp->sy < 5) { |
tty_cursor(tty, px - len / 2, py, wp->xoff, wp->yoff); |
tty_cursor(tty, xoff + px - len / 2, yoff + py); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
colour_set_fg(&gc, colour); |
colour_set_fg(&gc, colour); |
tty_attributes(tty, &gc); |
tty_attributes(tty, &gc); |
|
|
|
|
for (j = 0; j < 5; j++) { |
for (j = 0; j < 5; j++) { |
for (i = px; i < px + 5; i++) { |
for (i = px; i < px + 5; i++) { |
tty_cursor(tty, i, py + j, wp->xoff, wp->yoff); |
tty_cursor(tty, xoff + i, yoff + py + j); |
if (clock_table[idx][j][i - px]) |
if (clock_table[idx][j][i - px]) |
tty_putc(tty, ' '); |
tty_putc(tty, ' '); |
} |
} |