Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top