Doesn't work under windows command line 6.0.6001
michaelcm opened this issue · comments
Actual colour codes are displayed throughout the command line:
←[33m ERROR←[0m testPasswordChange (1.50s)
I did notice that the RUBY_PLATFORM check to load Win32/Console/ANSI is looking for win32 in the string but my RUBY_PLATFORM = i386-mingw32
A deactivation flag or variable that can be set disabling it for all gems that require colours would be nice.
By the way I have ansi (1.2.5) with ruby (1.9.2).
Thanks. I will fix.
This should be fixed now. I added a check for w32 as well. Also, if you ever have problems and just need to turn the ANSI codes off, then set $ansi = false
. This will deactivate codes in most cases for (nearly) all of ANSI's libraries.