diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-09-24 12:53:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-09-24 12:53:55 +0000 |
commit | eb0ad181e909c83fad8c1fd2a4a37271b6980ea2 (patch) | |
tree | 341079f355f80fcb84e82cad1cab8626885de894 /screen-write.c | |
parent | b2a9f4115f99f88a8b69a36a1f9ab12f6de4a986 (diff) | |
download | rtmux-eb0ad181e909c83fad8c1fd2a4a37271b6980ea2.tar.gz rtmux-eb0ad181e909c83fad8c1fd2a4a37271b6980ea2.tar.bz2 rtmux-eb0ad181e909c83fad8c1fd2a4a37271b6980ea2.zip |
Use ACS characters for choose-tree arrows based on diff from Romain
Francoise.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 8 |
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++; } } |