From: Florian Frank Date: 2006-04-12T18:50:38+09:00 Subject: Re: using ansicolor --------------000202080106090003080908 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Sy Ali wrote: >http://term-ansicolor.rubyforge.org/ > >I did a successful gem install of term-ansicolor and am trying to use it: > > include Term::ANSIColor > print red, bold, "red bold", reset, "\n" > >gives me: > > uninitialized constant Term > > >I tried all kinds of variations, found some code where other people >used this and tried all that out. No luck. > >Is this a problem with my Ruby or gems installation? > > It seems to work fine here: closure:~ flori$ ruby require 'term/ansicolor' include Term::ANSIColor print red, bold, "red bold", reset, "\n" *red bold* Have you required the library before trying to use it? Florian --------------000202080106090003080908--