updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / colortheme / colortheme-ascii
blob5d9773abe5867228c253cf896be63170280e7d6c
1 #!/bin/bash
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
13 bg=$(($b+39))
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]} "
19 done
20 echo -en "\033[0m |"
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]} "
25 done
26 echo -en "\033[0m |"
27 echo -e "\033[0m"
29 if [ "$b" -lt 8 ]; then
30 echo " |--------------------------------------------------------------------------|"
32 done
33 echo " '--------------------------------------------------------------------------'"