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
|
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
|
-- 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
|
if [ "$1" = "color" ] && [ -n "$2" ]; then
|
||||||
i=0
|
i=0
|
||||||
out=
|
out=
|
||||||
tput setab "$2"
|
|
||||||
tput setaf "$2"
|
|
||||||
count=$(stty size | awk '{print $1*$2}')
|
count=$(stty size | awk '{print $1*$2}')
|
||||||
while [ $i -lt $count ]; do
|
perl -e "print color 'reset'; printf \"\x1b[48;5;${2}m%${count}s\", \" \";";
|
||||||
out="$out "
|
|
||||||
i=$((i+1))
|
|
||||||
done
|
|
||||||
printf "$out"
|
|
||||||
head -n1
|
head -n1
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue