From efae613d56e7f0bb22967d5595847e54408854e8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Feb 2020 17:33:01 -0500 Subject: [PATCH] profile.d: set utf-8 terminal mode by default --- .profile.d/utf8.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .profile.d/utf8.sh 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 -- 2.39.5