"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "xiterm-2.0/doc/test/color" of archive xiterm-2.0.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 #!/bin/sh --
2 #
3 # display ANSI colours and test bold/blink attributes
4 #-------------------------------------------------------------------------
5 echo ""; echo "[m"
6 echo " 40 41 42 43 44 45 46 47"
7 echo " 40 41 42 43 44 45 46 47"
8 for fg in 30 31 32 33 34 35 36 37
9 do
10 l1="$fg ";
11 l2=" ";
12 l3=" ";
13 l4=" ";
14 for bg in 40 41 42 43 44 45 46 47
15 do
16 l1="${l1}[${fg};${bg}m Normal [m"
17 l2="${l2}[${fg};${bg};1m Bold [m"
18 l3="${l3}[${fg};${bg};5m Blink [m"
19 l4="${l4}[${fg};${bg};1;5m Bold! [m"
20 done
21 echo "$l1"
22 echo "$l2"
23 echo "$l3"
24 echo "$l4"
25 done
26 #------------------------------------------------------------- end-of-file