summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-24 12:53:55 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-09-24 12:53:55 +0000
commiteb0ad181e909c83fad8c1fd2a4a37271b6980ea2 (patch)
tree341079f355f80fcb84e82cad1cab8626885de894 /screen-write.c
parentb2a9f4115f99f88a8b69a36a1f9ab12f6de4a986 (diff)
Use ACS characters for choose-tree arrows based on diff from Romain
Francoise.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index ee038e7d..ce9411b6 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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++;
}
}