I need to know if one function does excist

Hey all!

I was making a program and then one thing popped in my mind: Is there a
function in Ruby that gives you the chance of that when somebody is
running the program and it stands ‘Press any button to continue’ that he
could press any button, the ‘Press any button to continue’ would
disappear and the program would start?

On 2/25/07, Helgitomas G. [email protected] wrote:

Posted via http://www.ruby-forum.com/.
Maybe James’ and Gregory’s excellent Highline package will be what you
need
http://highline.rubyforge.org/
HTH
Robert

This is a highland program or something, I want to know if I can use
ruby without installing any update to it.

On 2/26/07, Helgitomas G. [email protected] wrote:

This is a highland program or something, I want to know if I can use
ruby without installing any update to it.

There’s the ruby/ncurses module which ships with ruby. require
‘curses’ to use it, and the function you’re looking for is
Curses.getch(). Documentation seems to be a bit sparse, though.

martin

Aww, well

On 2/26/07, Helgitomas G. [email protected] wrote:

This is a highland program or something, I want to know if I can use
ruby without installing any update to it.

This problem is not a trivial one, I fail to know if Highline is a
pure Ruby module in which case you can study the relevant parts of
Highline to learn how to do it, but it might be that the functionality
you are looking for is a C-extension.

I feel that you should just use Highline in the later case, just my
micromoney.

HAND
R.

Okidoki