]>
git.rmz.io Git - dotfiles.git/blob - bin/colortest256
2 # https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
3 # https://gist.github.com/XVilka/8346728#gistcomment-3528771
7 function echo_block
() {
11 for (( f
= 0; f
< 8; f
++ )); do
13 for (( b
= 0; b
< 8; b
++ )); do
14 echo -en "\033[38;5;$((fs+f))m\033[48;5;$((bs+b))m$T\033[0m";
20 function print_colors
() {
22 for (( c
= $1; c
< $1 + $2; c
++)); do
23 echo -en "\033[48;5;${c}m$T\033[0m"
30 for (( c
= 16; c
< 256 - 24; c
+= 36 )); do
33 print_colors $
((256 - 24)) 24
36 function true_colors
() {
Reading blob failed.