--- /dev/null
+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