Added color support to the text writer.

Added support to print text in color using the existing text writer implementation.