added another color tester script for 256 colors

This commit is contained in:
Steffen Vogel 2014-06-25 23:34:08 +02:00
parent 5af47c4bed
commit 65aec5051e
1 changed files with 10 additions and 0 deletions

10
colors256.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
for color in {0..255}; do
printf "\x1b[38;5;${color}m %3s \e[0m" $color #fg
printf "\x1b[48;5;${color}m %3s \e[0m" $color #bg
if [ $((($color + 1) % 8)) == 0 ] ; then
echo #New line
fi
done