# I need to know if one function does excist

**URL:** <https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763>\
**Category:** Ruby\
**Created:** [February 25, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763 "2007-02-25T18:08:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 25, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/1 "2007-02-25T18:08:39Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 25, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/2 "2007-02-25T23:34:21Z")

</div>

On 2/25/07, Helgitomas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 26, 2007, 8:29am UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/3 "2007-02-26T08:29:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 26, 2007, 9:17am UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/4 "2007-02-26T09:17:01Z")

</div>

On 2/26/07, Helgitomas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 26, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/5 "2007-02-26T15:46:04Z")

</div>

Aww, well

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 26, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/6 "2007-02-26T22:13:06Z")

</div>

On 2/26/07, Helgitomas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![helgso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@helgso](https://www.ruby-forum.com/u/helgso)\
**Post date:** [February 26, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/i-need-to-know-if-one-function-does-excist/86763/7 "2007-02-26T22:16:14Z")

</div>

Okidoki
