version 1.7, 2009/07/24 19:14:38 |
version 1.8, 2009/07/31 10:12:49 |
|
|
struct window_pane *wp; |
struct window_pane *wp; |
u_int i, j, type; |
u_int i, j, type; |
int status; |
int status; |
const u_char *border; |
const u_char *base, *ptr; |
|
u_char ch, border[20]; |
|
|
/* Get status line, er, status. */ |
/* Get status line, er, status. */ |
if (c->message_string != NULL || c->prompt_string != NULL) |
if (c->message_string != NULL || c->prompt_string != NULL) |
|
|
|
|
/* Draw background and borders. */ |
/* Draw background and borders. */ |
tty_reset(tty); |
tty_reset(tty); |
|
strlcpy(border, " |-....--||+.", sizeof border); |
if (tty_term_has(tty->term, TTYC_ACSC)) { |
if (tty_term_has(tty->term, TTYC_ACSC)) { |
border = " xqlkmjwvtun~"; |
base = " xqlkmjwvtun~"; |
|
for (ptr = base; *ptr != '\0'; ptr++) { |
|
if ((ch = tty_get_acs(tty, *ptr)) != '\0') |
|
border[ptr - base] = ch; |
|
} |
tty_putcode(tty, TTYC_SMACS); |
tty_putcode(tty, TTYC_SMACS); |
} else |
} |
border = " |-....--||+."; |
|
for (j = 0; j < tty->sy - status; j++) { |
for (j = 0; j < tty->sy - status; j++) { |
if (status_only && j != tty->sy - 1) |
if (status_only && j != tty->sy - 1) |
continue; |
continue; |