2 # Original: http://frexx.de/xterm-256-notes/
3 # http://frexx.de/xterm-256-notes/data/colortable16.sh
4 # Modified by Aaron Griffin
5 # and further by Kazuo Teramoto
8 FGNAMES
=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ')
9 BGNAMES
=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT')
10 echo " .--------------------------------------------------------------------------."
11 for b
in $
(seq 0 8); do
12 if [ "$b" -gt 0 ]; then
16 echo -en "\033[0m ${BGNAMES[$b]} | "
17 for f
in $
(seq 0 7); do
18 echo -en "\033[${bg}m\033[$(($f+30))m ${FGNAMES[$f]} "
22 echo -en "\033[0m\n\033[0m | "
23 for f
in $
(seq 0 7); do
24 echo -en "\033[${bg}m\033[1;$(($f+30))m ${FGNAMES[$f]} "
29 if [ "$b" -lt 8 ]; then
30 echo " |--------------------------------------------------------------------------|"
33 echo " '--------------------------------------------------------------------------'"