2 # Author: Mike Frysinger <vapier@gmail.com>; released into the public domain; suck it.
10 BRACKET="\$'\e[34;01m'"
13 for c in "${colors[@]}" ; do
14 [[ -t 0 ]] || c="${c%=*}="
20 if [[ ${TERM} != *-256color ]] ; then
22 echo "warning: TERM (${TERM}) does not end in '-256color';"
23 echo "warning: trying to use 256 colors might not work."
29 echo -e '\e['"${1};${2}mthis color is: \\\\e[${1};${2}m \e[0m"
39 for j in {30..37} ; do
46 for n in {16..231} ; do
47 showit "38;05" $(printf '%03i' ${n})
52 for n in {232..255} ; do
57 for x in system cube gray ; do
67 - --env - show env you can eval in a shell
68 - 16, system - show basic colors (default)
69 - cube, 6x6x6 - show most extended colors
70 - gray - show gray scale
71 - all, 256 - show all colors