What you are trying to do ??
there are many mistakes in this script..
#here goes your syntax error
echo -e -n "\033[47m " ## for black color
echo -e -n "\033[40m " ## for white color
echo -e -n "\033[47m"
This will make whole your screen white unless you terminate the color code with \033[0m and produce no output. as every time the first condition become false. I dont know what you are trying to do ?