1 export TERMINFO=${PROFILE_HOME:-~}/.terminfo
4 [ "$OS" = "Cygwin" -a "$TERM" = "xterm" ] && export TERM=putty-256color
6 # Check the terminal is valid.
7 while [ -z "$(tput longname 2>/dev/null)" ]; do
9 xterm-256color) export TERM=xterm-88color;;
10 xterm-88color) export TERM=xterm-color;;
11 xterm-color) export TERM=xterm;;
13 *) export TERM=xterm-256color;;