PHPUnit Windows command box nice colors

I have PHPunit installed on a Windows machine. But I don't get nice output on my command line. With the green colours. Someone on the PHPunit mailing list told me I need the ansi.sys driver.

Can someone tell me how to do it so that PHPunit will use the driver?

I tried to add

device=%SystemRoot%\System32\ansi.sys

to my config.nt, but that doesn't give me the desired output. Any ideas?


enter image description here

ANSI Command Line Colors under Windows (Nov 2010 by SOFTKUBE s.a.r.l.)

Please remember that the download link in the article does not lead to the files with binaries. Please follow this to get source / binary packages.


Windows Console does not use MS-DOS drivers and does not read config.nt. (Those are purely for NTVDM.)

If you need an ANSI-compatible terminal, check out mintty.