mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 21:43:19 -07:00
- simply speed up using perl
* usr/bin/byobu: LP: #937175 - check tput for 256 color support before defaulting to that in tmux mode
This commit is contained in:
parent
e1438899c6
commit
463b75a6ac
2 changed files with 9 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,7 +1,9 @@
|
||||||
byobu (5.13) unreleased; urgency=low
|
byobu (5.13) unreleased; urgency=low
|
||||||
|
|
||||||
* usr/lib/byobu/include/mondrian:
|
* usr/lib/byobu/include/mondrian:
|
||||||
- simply and speed up using perl
|
- simply speed up using perl
|
||||||
|
* usr/bin/byobu: LP: #937175
|
||||||
|
- check tput for 256 color support before defaulting to that in tmux mode
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Feb 2012 23:58:36 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Feb 2012 23:58:36 -0600
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,12 @@ fi
|
||||||
|
|
||||||
case $BYOBU_BACKEND in
|
case $BYOBU_BACKEND in
|
||||||
tmux)
|
tmux)
|
||||||
# Use 256 colors, unless the user has overridden
|
# Use 256 colors if possible
|
||||||
|
if command -v tput >/dev/null; then
|
||||||
|
if [ "$(tput colors 2>/dev/null || echo 0)" = "256" ]; then
|
||||||
[ -z "$SCREEN_TERM" ] && SCREEN_TERM="-2"
|
[ -z "$SCREEN_TERM" ] && SCREEN_TERM="-2"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
PROFILE="-f $BYOBU_PREFIX/share/$PKG/profiles/tmuxrc"
|
PROFILE="-f $BYOBU_PREFIX/share/$PKG/profiles/tmuxrc"
|
||||||
sessions=$($BYOBU_BACKEND list-sessions 2>/dev/null) || true
|
sessions=$($BYOBU_BACKEND list-sessions 2>/dev/null) || true
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue