How do I get colour with Windows command prompt using RSpec in Ruby?

前端 未结 8 2999
迷失自我
迷失自我 2021-02-20 03:10

In other o/s RSpec returns nicely coloured results (red, green etc).

However in the windows (Vista) command prompt my text output is just plain old boring white.

8条回答
  •  时光说笑
    2021-02-20 03:44

    You need to install the win32console gem. BTW: which version of RSpec are you using? Every single version of RSpec I have ever used, actually prints out

    You must 'gem install win32console' to use colour on Windows
    

    when you try to colorize output.

提交回复
热议问题