Hmm, I don't quite understand what situation we're trying to protect against here, that we're not already handling.
What's the actual problem, and how do I reproduce it?
We currently do this:
# Check if our terminfo supports 256 colors
if command -v tput >/dev/null; then if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then SCREEN_TERM="-T screen-256color" fi
fi
Hmm, I don't quite understand what situation we're trying to protect against here, that we're not already handling.
What's the actual problem, and how do I reproduce it?
We currently do this:
if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then
SCREEN_ TERM="- T screen-256color"
fi
# Check if our terminfo supports 256 colors
if command -v tput >/dev/null; then
fi
What situations are not handled/detected by that?