win32console problem

J

Jake J.

I looked around and couldn't find a topic on this, but if I missed it,
please refer me to the topic location.

I am very new to ruby, so this is probably a simple question.

Here is my code:

<code>
begin
require 'rubygems'
rescue LoadError
end

require 'win32console'
require 'term/ansicolor'

include Win32::Console::ANSI

class String
include Term::ANSIColor
end

Win32Console.background_color :red
</code>

My the result I get is " uninitialized constant Win32Console
(NameError)". What am I doing wrong?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,484
Latest member
JackRichard

Latest Threads

Top