=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-redraw.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/tmux/screen-redraw.c 2009/07/24 19:14:38 1.7 --- src/usr.bin/tmux/screen-redraw.c 2009/07/31 10:12:49 1.8 *************** *** 1,4 **** ! /* $OpenBSD: screen-redraw.c,v 1.7 2009/07/24 19:14:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: screen-redraw.c,v 1.8 2009/07/31 10:12:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 161,167 **** struct window_pane *wp; u_int i, j, type; int status; ! const u_char *border; /* Get status line, er, status. */ if (c->message_string != NULL || c->prompt_string != NULL) --- 161,168 ---- struct window_pane *wp; u_int i, j, type; int status; ! const u_char *base, *ptr; ! u_char ch, border[20]; /* Get status line, er, status. */ if (c->message_string != NULL || c->prompt_string != NULL) *************** *** 177,187 **** /* Draw background and borders. */ tty_reset(tty); if (tty_term_has(tty->term, TTYC_ACSC)) { ! border = " xqlkmjwvtun~"; tty_putcode(tty, TTYC_SMACS); ! } else ! border = " |-....--||+."; for (j = 0; j < tty->sy - status; j++) { if (status_only && j != tty->sy - 1) continue; --- 178,192 ---- /* Draw background and borders. */ tty_reset(tty); + strlcpy(border, " |-....--||+.", sizeof border); if (tty_term_has(tty->term, TTYC_ACSC)) { ! 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); ! } for (j = 0; j < tty->sy - status; j++) { if (status_only && j != tty->sy - 1) continue;