usr/lib/byobu/custom: save a fork

This commit is contained in:
Dustin Kirkland 2010-06-16 23:30:54 -05:00
commit c4865187b5
2 changed files with 11 additions and 8 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,6 @@
byobu (2.81) unreleased; urgency=low
* UNRELEASED
* usr/lib/byobu/custom: save a fork
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500

View file

@ -38,11 +38,14 @@ for i in "$HOME"/.$PKG/bin/[0-9]*_*; do
$i $@ > "$CACHE.$script" 2>/dev/null
fi
output=$(cat "$CACHE.$script")
if echo "$output" | grep -qs "$ESC{"; then
case "$output" in
*"$ESC{"*)
# User has formatted the colors
printf "$output"
else
;;
*)
# Default to inverted coloring
printf "$(color invert)$output$(color -) "
fi
;;
esac
done