#!/bin/sh
echo -e
echo -e "+----------------------------------------------------+"
echo -e "|Codes couleur ANSI :                                |"
echo -e "+----------------------------------------------------+"
echo -e "ESC[xm :"
echo -e "  x =  0     1     2     3     4     5     6     7"
echo -e "      \033[0m abcd \033[0m\033[1m abcd \033[0m\033[2m abcd \033[0m\033[3m abcd \033[0m\033[4m abcd \033[0m\033[5m abcd \033[0m\033[6m abcd \033[0m\033[7m abcd \033[0m"
echo -e
echo -e "            ------------------------------            "
echo -e "ESC[x;ym :"
echo -e "  x =  40    41    42    43    44    45    46    47"
for cpt in 1 4 7; do
echo -e "y=$cpt   \033[40;${cpt}m abcd \033[41;${cpt}m abcd \033[42;${cpt}m abcd \033[43;${cpt}m abcd \033[44;${cpt}m abcd \033[45;${cpt}m abcd \033[46;${cpt}m abcd \033[47;${cpt}m abcd \033[0m"
done
cpt=30
while [ $cpt -lt 38 ]
do
echo -e "y=$cpt  \033[40;${cpt}m abcd \033[41;${cpt}m abcd \033[42;${cpt}m abcd \033[43;${cpt}m abcd \033[44;${cpt}m abcd \033[45;${cpt}m abcd \033[46;${cpt}m abcd \033[47;${cpt}m abcd \033[0m"
cpt=`expr $cpt + 1`
done
echo -e "            ------------------------------            "


