Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 A Ruby Rainbow - adding some colour
Index -> Programming, Ruby -> Ruby Tutorials
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony




PostPosted: Sat Oct 21, 2006 11:43 pm   Post subject: A Ruby Rainbow - adding some colour

a very nifty gem from http://errtheblog.com/post/36

code:

$ sudo gem install color --source require.errtheblog.com


Posted Image, might have been reduced in size. Click Image to view fullscreen.

Awesome for colouring rake tests, or simply putting some colour into the console apps.

There's even a port to (almost) make it work in Windows.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Silent Avenger




PostPosted: Sat Oct 21, 2006 11:48 pm   Post subject: (No subject)

So this doesn't work in Windows? Or does it work but just barely?
Tony




PostPosted: Sun Oct 22, 2006 12:07 am   Post subject: (No subject)

it works, just that you'll need a different gem
code:

$ gem install win32console --source require.errtheblog.com
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Silent Avenger




PostPosted: Sun Oct 22, 2006 8:44 am   Post subject: (No subject)

Oh okay, thanks!
Display posts from previous:   
   Index -> Programming, Ruby -> Ruby Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: