# A bit of help

**URL:** <https://www.ruby-forum.com/t/a-bit-of-help/104492>\
**Category:** Ruby\
**Created:** [May 18, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492 "2007-05-18T17:46:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![acoole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@acoole](https://www.ruby-forum.com/u/acoole)\
**Post date:** [May 18, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492/1 "2007-05-18T17:46:56Z")

</div>

Ok say i was using this code using SciTE

puts ‘Hello there, and what’s your name?’  
name = gets  
puts 'Your name is ’ + name + ‘? What a lovely name!’  
puts 'Pleased to meet you, ’ + name + ‘. :)’

After i input my name in the gets, and press enter it just skips the  
rest of the program and closes it!

Whats wrong?

Thanks,

---

<div class="post-metadata">

**Author:** ![acoole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@acoole](https://www.ruby-forum.com/u/acoole)\
**Post date:** [May 18, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492/2 "2007-05-18T17:53:33Z")

</div>

bUJMP

---

<div class="post-metadata">

**Author:** ![acoole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@acoole](https://www.ruby-forum.com/u/acoole)\
**Post date:** [May 18, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492/3 "2007-05-18T17:57:44Z")

</div>

On 5/19/07, Acoole C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Whats wrong?
> 
> Thanks,

Hi,

I don’t use SciTE, but it is probably running so fast you do not see  
it and then closes.

Try this.

puts ‘Hello there, and what's your name?’  
name = gets  
puts 'Your name is ’ + name + ‘? What a lovely name!’  
puts 'Pleased to meet you, ’ + name + ‘. :)’  
gets

Just put the ‘gets’ at the end.  
That will make the program wait for you to enter something.

Harry

–

A Look into Japanese Ruby List in English  
[http://www.kakueki.com/](http://www.kakueki.com/)

---

<div class="post-metadata">

**Author:** ![acoole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@acoole](https://www.ruby-forum.com/u/acoole)\
**Post date:** [May 18, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492/4 "2007-05-18T18:01:43Z")

</div>

Oh my god!, it worked Thank you guys so much. Ruby-Forum rules!

Thanks,  
-Acoole

---

<div class="post-metadata">

**Author:** ![acoole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@acoole](https://www.ruby-forum.com/u/acoole)\
**Post date:** [May 18, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/a-bit-of-help/104492/5 "2007-05-18T18:06:46Z")

</div>

In message [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid), Acoole  
Cooland writes:

> Whats wrong?  
> What’s wrong is that you’re not fast enough to read the message before,  
> a microsecond or three later, the computer realizes that the program  
> has exited and closes the window.

-s
