mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/distro, usr/lib/byobu/logo: LP: #1094716
- try to improve logo printing and distro detection on Mac
This commit is contained in:
parent
354581bea8
commit
6b13802d71
3 changed files with 10 additions and 4 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -25,6 +25,8 @@ byobu (5.23) unreleased; urgency=low
|
|||
debian/install, usr/share/byobu/pixmaps/highcontrast/byobu.svg:
|
||||
- add a byobu high contrast icon, LP: #1082241
|
||||
- simplify, removing detail
|
||||
* usr/lib/byobu/distro, usr/lib/byobu/logo: LP: #1094716
|
||||
- try to improve logo printing and distro detection on Mac
|
||||
|
||||
[ Dustin Kirkland and Philip Muškovac ]
|
||||
* usr/lib/byobu/battery: LP: #1090831
|
||||
|
|
|
@ -58,6 +58,8 @@ __distro() {
|
|||
DISTRO=$(lsb_release -s -i)
|
||||
;;
|
||||
esac
|
||||
elif $BYOBU_TEST uname >/dev/null 2>&1; then
|
||||
DISTRO="$(uname -s)"
|
||||
else
|
||||
DISTRO="Byobu"
|
||||
fi
|
||||
|
|
|
@ -33,6 +33,8 @@ get_distro() {
|
|||
_RET=`lsb_release -s -a 2>/dev/null`
|
||||
elif $BYOBU_TEST sw_vers >/dev/null 2>&1; then
|
||||
_RET=`sw_vers 2>/dev/null`
|
||||
elif $BYOBU_TEST uname >/dev/null 2>&1; then
|
||||
_RET=`uname -s`
|
||||
else
|
||||
# No idea!
|
||||
_RET="[B]"
|
||||
|
@ -66,7 +68,7 @@ __logo() {
|
|||
color m W; printf " U "; color -
|
||||
fi
|
||||
else
|
||||
printf "\\o/"
|
||||
printf " U "
|
||||
fi
|
||||
;;
|
||||
*altlinux*)
|
||||
|
@ -97,13 +99,13 @@ __logo() {
|
|||
logo=" > "
|
||||
$MARKUP && printf "$(color b c w)%s$(color -)" "$logo" || printf "$logo"
|
||||
;;
|
||||
*mac*)
|
||||
*mac*|*darwin*)
|
||||
if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
|
||||
logo=" ⌘ "
|
||||
else
|
||||
logo=" X "
|
||||
fi
|
||||
$MARKUP && printf "$(color b k w)%s$(color -)" "$logo" || printf "$logo"
|
||||
$MARKUP && printf "$(color w k)%s$(color -)" "$logo" || printf "$logo"
|
||||
;;
|
||||
*mandriva*)
|
||||
logo=" (* "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue