mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
usr/bin/byobu: handle unset term in tput 256 color check
This commit is contained in:
parent
e4de9c26a6
commit
476e623342
2 changed files with 2 additions and 1 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -4,6 +4,7 @@ byobu (2.72) unreleased; urgency=low
|
|||
* usr/share/man/man1/byobu.1: document a sample custom script using
|
||||
custom colors, LP: #568967
|
||||
* usr/bin/byobu: LANG=C before grepping for text
|
||||
* usr/bin/byobu: handle unset term in tput 256 color check
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 22 Apr 2010 12:31:20 -0500
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
|
|||
grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="motd+shell"
|
||||
|
||||
# Check if our terminfo supports 256 colors
|
||||
[ -x /usr/bin/tput ] && [ $(/usr/bin/tput colors) -eq 256 ] && SCREEN_TERM="-T screen-256color"
|
||||
[ -x /usr/bin/tput ] && [ $(/usr/bin/tput colors 2>/dev/null || echo 0) -eq 256 ] && SCREEN_TERM="-T screen-256color"
|
||||
|
||||
# Create or update ssh-agent socket
|
||||
if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue