Merge branch 'master' into hjp

This commit is contained in:
Peter J. Holzer 2020-02-28 11:15:50 +01:00
commit 2b875f67e6
1 changed files with 10 additions and 7 deletions

View File

@ -23,21 +23,24 @@ then
stty erase  stty erase 
fi fi
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color ]] if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color && ! -f /lib/terminfo/x/xterm-256color ]]
then then
TERM=xterm TERM=xterm
fi fi
if [[ $TERM == xterm ]] if [[ $TERM == xterm ]]
then then
for t in xterm-256color xterm+256color for t in xterm-256color
do do
if [[ -f /usr/share/terminfo/x/$t ]] for dir in /usr/share/terminfo/x /lib/terminfo/x/
do
if [[ -f $dir/$t ]]
then then
TERM=$t TERM=$t
break break 2
fi fi
done done
done
fi fi
case "$TERM" in case "$TERM" in