* usr/bin/byobu: LP: #1173354

- if tput colors is 256, use screen-256color in byobu-screen
This commit is contained in:
Dustin Kirkland 2013-07-16 15:35:51 -05:00
commit 5af60f7038
2 changed files with 4 additions and 2 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.46) unreleased; urgency=low
* UNRELEASED
[ Chow Loong Jin ]
* usr/bin/byobu: LP: #1173354
- if tput colors is 256, use screen-256color in byobu-screen
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 15 Jul 2013 15:52:56 -0500

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