I'm using Python Colorama on a Linux system to print stdout to the terminal in color. I use the Linux 'tee' command to also capture this output to a file. When the script is done, it emails the captured text file, including the escape sequences, to an email address that I check on Windows. The email has the text file as an attachement, and if I open it with Windows Wordpad I see this:
[37m [45m [1m**************************************** [40m
[37m [45m*** Welcome to the QtHttp Test Suite *** [40m
[37m [45m**************************************** [40m
Here is a screenshot of the terminal in Linux:
If I 'cat' the file in Linux, it shows the color in the terminal.
How can I open the file in Windows so that it honors the escape sequences and shows the text file in color?
Thanks.