aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-15 16:44:04 +0000
committernicm <nicm>2017-05-15 16:44:04 +0000
commit1ba7f1d03f680df20d45b5c2ca08ae39665e1dea (patch)
treef2845204d19836360ebe18619490119c30c33205 /tty-term.c
parentb160de5cb4cf901e0d01594308f8f4f54df9e2a9 (diff)
downloadrtmux-1ba7f1d03f680df20d45b5c2ca08ae39665e1dea.tar.gz
rtmux-1ba7f1d03f680df20d45b5c2ca08ae39665e1dea.tar.bz2
rtmux-1ba7f1d03f680df20d45b5c2ca08ae39665e1dea.zip
Check the terminfo(5) U8 capability and disable using UTF-8 for ACS if
it is present and zero. This is useful for users with terminals or fonts that do not correctly support UTF-8 line drawing characters. GitHub issue 927, reported by Hiroaki Yamazoe and Akinori Hattori.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty-term.c b/tty-term.c
index df01d5de..d1142ad2 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -254,6 +254,7 @@ static const struct tty_term_code_entry tty_term_codes[] = {
[TTYC_TC] = { TTYCODE_FLAG, "Tc" },
[TTYC_TSL] = { TTYCODE_STRING, "tsl" },
[TTYC_VPA] = { TTYCODE_STRING, "vpa" },
+ [TTYC_U8] = { TTYCODE_NUMBER, "U8" },
[TTYC_XENL] = { TTYCODE_FLAG, "xenl" },
[TTYC_XT] = { TTYCODE_FLAG, "XT" },
};