You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought this might happen. thanks for the platform detection tips, But I think this is more about the terminal than the OS. I need to figure out if there's an ansi capable terminal to do this correctly.
In the meantime, you can turn off the colors by adding color_output = false to your configuration.
The CLI utilities are spitting out ANSI control codes on Windows instead of rendering colours.
http://pastie.org/733822
This is easy to solve by detecting for windows:
http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/
Then requiring win32console.
e.g.
require 'rbconfig'
require 'win32console' if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
(note I've used RbConfig::CONFIG rather than Config::CONFIG - this is, apparently, because Config::CONFIG is being remove from Ruby.)
The text was updated successfully, but these errors were encountered: