Assume xterm has 256 colors

This commit is contained in:
Peter J. Holzer 2019-12-27 20:08:53 +01:00
parent 411686c795
commit 9a1b52eee2
1 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,18 @@ then
TERM=xterm
fi
if [[ $TERM == xterm ]]
then
for t in xterm-256color xterm+256color
do
if [[ -f /usr/share/terminfo/x/$t ]]
then
TERM=$t
break
fi
done
fi
case "$TERM" in
xterm*|screen)
# indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)