I have a bash script which generates a motd. The problem is depending on some terminal settings which I am not sure about the color will extend to the end of the line. Othertime
Try with this:
echo -e '\E[33;44m'"yellow text on blue background"; tput sgr0