mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
usr/lib/byobu/custom: save a fork
This commit is contained in:
parent
fba874aa20
commit
c4865187b5
2 changed files with 11 additions and 8 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
# User has formatted the colors
|
||||
printf "$output"
|
||||
else
|
||||
# Default to inverted coloring
|
||||
printf "$(color invert)$output$(color -) "
|
||||
fi
|
||||
case "$output" in
|
||||
*"$ESC{"*)
|
||||
# User has formatted the colors
|
||||
printf "$output"
|
||||
;;
|
||||
*)
|
||||
# Default to inverted coloring
|
||||
printf "$(color invert)$output$(color -) "
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue