* usr/lib/byobu/.constants, usr/lib/byobu/updates_available:

- use unicode double-bang for security updates where possible
This commit is contained in:
Dustin Kirkland 2011-10-20 12:17:11 -05:00
commit 9b4346fd58
3 changed files with 11 additions and 5 deletions

2
debian/changelog vendored
View file

@ -5,6 +5,8 @@ byobu (4.42) unreleased; urgency=low
- add reboot symbol
* usr/bin/byobu-launch:
- enhance shell history syncronization across shells
* usr/lib/byobu/.constants, usr/lib/byobu/updates_available:
- use unicode double-bang for security updates where possible
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 14 Oct 2011 14:53:51 -0500

View file

@ -32,6 +32,8 @@ if [ "$UTF8" = "1" ] || [ "$BYOBU_BACKEND" = "tmux" ]; then
ICON_TRASH="♸"
ICON_WIFI="⚚"
ICON_REBOOT="⟳"
ICON_UPDATES="!"
ICON_SECURITY="‼"
else
ICON_C="C"
ICON_F="F"
@ -43,6 +45,8 @@ else
ICON_TRASH="T"
ICON_WIFI=
ICON_REBOOT="(R)"
ICON_UPDATES="!"
ICON_SECURITY="!!"
fi
PCT="%%"

View file

@ -24,11 +24,11 @@ ___print_updates() {
read u s < "$1"
if [ -n "$u" ]; then
if [ "$u" -gt 0 ]; then
color b r W; printf "%d" "$u"; color -; color r W; printf "!"
if [ -n "$s" ]; then
if [ "$s" -gt 0 ]; then
printf "!"
fi
color b r W; printf "%d" "$u"; color -; color r W
if [ -n "$s" ] && [ "$s" -gt 0 ]; then
printf "$ICON_SECURITY"
else
printf "$ICON_UPDATES"
fi
color --
fi