wac.exe is a small command line utility that lets you use ANSI colors on Windows. This will print nice colors:
printcol.bat | wac
This will not:
printcol.bat
Some command line tools (like Cucumber) like to print ANSI colors.
Since Windows has no idea what ANSI colors are, all you’ll see is gibberish. Unless
you use wac.
I know that Perl, Ruby, Python etc have native libraries that will do ANSI coloring on Windows,
but not all platforms have that. If you’re using e.g. JRuby on Windows there is no such
library. So wac will save you.
Just download wac.exe and put it somewhere on your PATH.
wac.exe reads from STDIN and prints to STDOUT. While doing that it looks for ANSI color codes, and if it finds one,
it sets the console color accordingly and strips away the color code from the output.
Just get MinGW and run:
gcc -o wac wac.c
Because it’s easy to change colors on Windows with C.
Because I never do C. Feel free to improve that.
Great. Just fork this Git repo, clone your fork and fix it.
When you have pushed your changes back to your repo, send me a pull request.
I don’t know C either. Find someone who does.