Fix inverted logic when enabling 256 colors on screen

This commit is contained in:
Chow Loong Jin 2013-07-10 14:56:57 +08:00
commit faef1ec55e

View file

@ -130,7 +130,7 @@ case $BYOBU_BACKEND in
# Check if our terminfo supports 256 colors
if $BYOBU_TEST tput >/dev/null; then
if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then
SCREEN_TERM="-T screen"
SCREEN_TERM="-T screen-256color"
fi
fi
# Some users want to maintain separate configurations