4 # Switches from rxvt to xterm if the defined terminal does not exist
6 if [[ "$TERM" =~ "rxvt-" ]] && which tput >/dev/null 2>&1; then
7 if [[ -z "$(tput longname 2>/dev/null)" ]]; then
8 TERM="xterm-${TERM##rxvt-}"
12 if [[ "$TERM" =~ "stterm-" ]] && which tput >/dev/null 2>&1; then
13 if [[ -z "$(tput longname 2>/dev/null)" ]]; then
14 TERM="xterm-${TERM##stterm-}"