* 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 - add reboot symbol
* usr/bin/byobu-launch: * usr/bin/byobu-launch:
- enhance shell history syncronization across shells - 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 -- 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_TRASH="♸"
ICON_WIFI="⚚" ICON_WIFI="⚚"
ICON_REBOOT="⟳" ICON_REBOOT="⟳"
ICON_UPDATES="!"
ICON_SECURITY="‼"
else else
ICON_C="C" ICON_C="C"
ICON_F="F" ICON_F="F"
@ -43,6 +45,8 @@ else
ICON_TRASH="T" ICON_TRASH="T"
ICON_WIFI= ICON_WIFI=
ICON_REBOOT="(R)" ICON_REBOOT="(R)"
ICON_UPDATES="!"
ICON_SECURITY="!!"
fi fi
PCT="%%" PCT="%%"

View file

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