Converted the ANSI colour code to stream manipulator like objects