Added color support to existing text writer.

Added color printing support to the existing text writer implementation.