Sri

Have you tried the tput option instead of the escape:

RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`

Cliff