mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/lib/byobu/include/mondrian:
- simply and speed up using perl
This commit is contained in:
parent
74f7ad088e
commit
e1438899c6
2 changed files with 3 additions and 8 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (5.13) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/lib/byobu/include/mondrian:
|
||||
- simply and speed up using perl
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Feb 2012 23:58:36 -0600
|
||||
|
||||
|
|
|
@ -25,14 +25,8 @@ trap "tput reset" EXIT HUP INT QUIT TERM KILL ILL TRAP ABRT BUS FPE USR1 SEGV US
|
|||
if [ "$1" = "color" ] && [ -n "$2" ]; then
|
||||
i=0
|
||||
out=
|
||||
tput setab "$2"
|
||||
tput setaf "$2"
|
||||
count=$(stty size | awk '{print $1*$2}')
|
||||
while [ $i -lt $count ]; do
|
||||
out="$out "
|
||||
i=$((i+1))
|
||||
done
|
||||
printf "$out"
|
||||
perl -e "print color 'reset'; printf \"\x1b[48;5;${2}m%${count}s\", \" \";";
|
||||
head -n1
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue