From: Mike Frysinger Date: Sat, 15 Feb 2020 22:33:01 +0000 (-0500) Subject: profile.d: set utf-8 terminal mode by default X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=efae613d56e7f0bb22967d5595847e54408854e8;p=home.git profile.d: set utf-8 terminal mode by default --- diff --git a/.profile.d/utf8.sh b/.profile.d/utf8.sh new file mode 100644 index 0000000..7345c68 --- /dev/null +++ b/.profile.d/utf8.sh @@ -0,0 +1,11 @@ +if [ "${TERM}" != "dumb" ]; then + # First use the temp transition. Not all terminals support the next mode. + printf '\e%%G' + # Then use the perm transition and hope it works. + printf '\e%%/I' + # Wipe out things in case the terminal doesn't either escape sequence. + printf '\r \r' + + # Tell ncurses to not be dumb. + export NCURSES_NO_UTF8_ACS=1 +fi