Just go back to xterm-256color for now

This commit is contained in:
Paul Walker
2024-02-27 09:53:17 +00:00
parent b2a71657d3
commit 2f91f5b76a

28
bashrc
View File

@@ -53,20 +53,20 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot) debian_chroot=$(cat /etc/debian_chroot)
fi fi
if [ 0 -a "$TERM" == "xterm" ] ; then #if [ -a "$TERM" == "xterm" ] ; then
# If it's available, use vscode-direct (which supports 16 million # # If it's available, use vscode-direct (which supports 16 million
# colours via the ';' sequences; required as PuTTY doesn't # # colours via the ';' sequences; required as PuTTY doesn't
# understand the ':' sequences). # # understand the ':' sequences).
# # #
# https://chadaustin.me/2024/01/truecolor-terminal-emacs/ # # https://chadaustin.me/2024/01/truecolor-terminal-emacs/
if [[ -r /usr/share/terminfo/v/vscode-direct ]] ; then # if [[ -r /usr/share/terminfo/v/vscode-direct ]] ; then
export TERM=vscode-direct # export TERM=vscode-direct
else # else
export TERM=xterm-256color # export TERM=xterm-256color
fi # fi
else #else
export TERM=xterm-256color export TERM=xterm-256color
fi #fi
# If this is an xterm set the title to user@host:dir # If this is an xterm set the title to user@host:dir
case "$TERM" in case "$TERM" in