#!/bin/csh -fb
#
# Display ANSI colours. 
#
#set esc="\033["
cat << END
 Below are the color init strings for the basic file types. A color init
 string consists of one or more of the following numeric codes:
 Attribute codes:
 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
 Text color codes:
 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
 Background color codes:
 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
END
set esc=""
echo "syntax for LS_COLORS: attr;fgcolor;bgcolor"
echo ""; echo "[m"
foreach at (00 01 04 05 07 08)
echo "attribute: $at"
echo "    fg=30      fg=31      fg=32     fg=33     fg=34     fg=35     fg=36     fg=37"
foreach back ("" "40;" "41;" "42;" "43;" "44;" "45;" "46;" "47;")
   set line1="bg=$back"
   if ( "$back" == "" ) then
	echo -n "   "
   endif
   foreach fore (30 31 32 33 34 35 36 37)
    set line1="${line1}${esc}[$at;${back}${fore}m $at;${back}${fore} ${esc}[m"
  end
  echo "$line1"
end
end

