diff --git a/debian/changelog b/debian/changelog index f52f1308..f59c0081 100644 --- a/debian/changelog +++ b/debian/changelog @@ -38,6 +38,12 @@ byobu (5.20) unreleased; urgency=low * usr/share/man/man1/byobu.1: LP: #977225 - add documentation about the status line background colors + [ Dustin Kirkland and Daniel Lee ] + * usr/lib/byobu/disk_io, usr/lib/byobu/mail, usr/lib/byobu/network: + - LP: #962730 + - clear out cache on a few other status notifications where we go + from activity, to none + [ https://launchpad.net/~ktyubuntu ] * usr/lib/byobu/logo: LP: #1004712 - fix Red Hat logo detection diff --git a/usr/lib/byobu/disk_io b/usr/lib/byobu/disk_io index f1732d96..5978528f 100755 --- a/usr/lib/byobu/disk_io +++ b/usr/lib/byobu/disk_io @@ -90,9 +90,11 @@ __disk_io() { unit="kB/s" fi fi - [ -z "$rate" ] && continue - [ "$rate" = "0" ] && continue - color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color -- + if [ -z "$rate" ] || [ "$rate" = "0" ]; then + rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/disk_io"* + else + color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color -- + fi done } diff --git a/usr/lib/byobu/mail b/usr/lib/byobu/mail index 5abc598b..f57d2aa4 100755 --- a/usr/lib/byobu/mail +++ b/usr/lib/byobu/mail @@ -28,6 +28,8 @@ __mail_detail() { __mail() { if [ -s "$MAILFILE" ]; then color b; printf "%s" "$ICON_MAIL"; color -- + else + rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/mail"* fi } diff --git a/usr/lib/byobu/network b/usr/lib/byobu/network index ed094586..2b1872a7 100755 --- a/usr/lib/byobu/network +++ b/usr/lib/byobu/network @@ -89,6 +89,8 @@ __network() { esac [ -n "$rate" ] || continue color b m w; printf "%s%s" "$symbol" "$rate"; color -; color m w; printf "%s" "$unit"; color -- + else + rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/network"* fi done }