How to recognize ansi color escape codes in Windows7 64 bit command terminal

VanRaizen picture VanRaizen · Feb 19, 2010 · Viewed 7.8k times · Source

I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able to work this correctly and get a colorized console with this OS?

Answer

Marco Tolk picture Marco Tolk · Mar 14, 2011

I ran into the same problem today, and found a workaround.

The commandline utility Windows ANSI Color detects ANSI color codes and sets the corresponding console color.

Example:

myapp.bat | wac

where wac is the Windows ANSI color utility