nixdots/home/programs/terminal/shell/zsh/rc/fallback_term.zsh

8 lines
301 B
Bash
Raw Normal View History

# If the set $TERM variable doesn't match any configured terminfo entries
# fall back to xterm. This fixes SSH connections from unknown terminals
2024-03-25 22:29:09 +00:00
if ! infocmp "$TERM" &>/dev/null; then
2024-03-25 22:41:19 +00:00
echo "Setting \$TERM to xterm-256color due to missing terminfo entry for $TERM."
2024-03-25 22:29:09 +00:00
export TERM=xterm-256color
2024-03-25 22:22:26 +00:00
fi