added another color tester script for 256 colors
This commit is contained in:
parent
5af47c4bed
commit
65aec5051e
1 changed files with 10 additions and 0 deletions
10
colors256.sh
Executable file
10
colors256.sh
Executable 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
|
Loading…
Add table
Reference in a new issue