Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rspec colors with Conemu

I'm trying to get colors to show up on my Windows 7 x64 machine when running rspec. I've tried console2 and ansicon but that makes Ruby crash. I've got ConEmu installed and Ruby runs again but I'm not getting any colors for rspec. Also in lines I expect to see color, they are preceded by text like [31m or [36m (this also occurs with cmd.exe).

Thanks for any help Sharon

like image 724
Sharon Dankwardt Avatar asked Nov 09 '12 15:11

Sharon Dankwardt


1 Answers

To enable ANSI X3.64 processing in ConEmu you must enable two options on "Features" page:

  • "Inject ConEmuHk"
  • "ANSI X3.64 / xterm 256 colors"

In fact, if you need ANSI processing in the root process only (cmd.exe for example) - there is no need in enabling "Inject ConEmuHk". But in most cases, when you run smth (which uses ANSI) from root shell - "Injects" are required.

ATM, latest alpha version recommended, there was some lags in the current stable build.

like image 51
Maximus Avatar answered Sep 19 '22 20:09

Maximus