In Git Bash on Windows 7, Colors display as code when running Cucumber or rspec

后端 未结 7 1915
予麋鹿
予麋鹿 2020-12-10 04:44

In Git Bash on Windows 7, I occasionally have something happen that causes the color coding to fail when running cucumber scenarios or rspec specs.

Occasionally, it

7条回答
  •  春和景丽
    2020-12-10 05:13

    After a number of fruitless attempts to get some colors on my Windows 7 bash terminals (msysgit with console2), I stumbled on Jason Karns blog 'ANSI color in Windows Shells'.

    All I had to do was unzip ansicon.exe to a permanent folder and run via cmd in that folder:

    ansicon.exe -i
    

    All bash logs now have colors instead of the [32m or [0m tags, woo!

提交回复
热议问题