summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-09-24 12:53:55 +0000
committernicm <nicm@openbsd.org>2012-09-24 12:53:55 +0000
commitbe573e22f7166772fc9d6cbf4957d1a2c2816181 (patch)
tree6c08d249c5b7e4089a8c402cc4453333d4326c47 /usr.bin/tmux/screen-write.c
parentspaces -> tabs (diff)
downloadwireguard-openbsd-be573e22f7166772fc9d6cbf4957d1a2c2816181.tar.xz
wireguard-openbsd-be573e22f7166772fc9d6cbf4957d1a2c2816181.zip
Use ACS characters for choose-tree arrows based on diff from Romain
Francoise.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 55808aa129d..af6f85e9742 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.56 2012/07/10 11:53:01 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.57 2012/09/24 12:53:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -210,8 +210,12 @@ screen_write_vnputs(struct screen_write_ctx *ctx, ssize_t maxlen,
if (maxlen > 0 && size + 1 > (size_t) maxlen)
break;
- size++;
- screen_write_putc(ctx, gc, *ptr);
+ if (*ptr == '\001')
+ gc->attr ^= GRID_ATTR_CHARSET;
+ else {
+ size++;
+ screen_write_putc(ctx, gc, *ptr);
+ }
ptr++;
}
}