How to set up wirble coloring on XP

I am having problems setting up wirble on an XP computer. when I start IRB, I get the following:

"Foo" .capitalize => ← [0; 31m "← [0; 0m ← [0; 36mFoo ← [0; 0m ← [0; 31m" ← [0; 0m

this only happens if I call colorize on wirble either in .irbrc or after irb starts. I installed ruby ​​1.8.6 with an all-in-one installer. Any ideas on how to make colors work?

+4
source share
2 answers

First install these two stones:

gem install win32console gem install wirble 

Then in the irb console do:

 require 'win32console' include Win32::Console::ANSI require 'wirble' Wirble.init Wirble.colorize 

Your entry will look like this:

 "foo".capitalize => "Foo" 

(Foo is now blue on my screen)

PS If you want irb to always start with these settings, just put the above code into the ".irbrc" file in your home directory.

+5
source

Try the following:

http://www.botvector.net/2008/06/colorized-wirble-in-windows-xp.html

(this was Google's first hit for "wirble windows")

+1
source

All Articles