if [[ -o interactive && $#terminfo -eq 0 ]] {
_oldterm=$TERM
TERM=xterm-256color >/dev/null 2>&1
- print -P "%F{red}!!! Can't find terminfo for $_oldterm, using $term%f"
+ print -P "%F{red}!!! Can't find terminfo for $_oldterm, using $TERM%f"
unset _oldterm
}