Stefan Mahlitz
5/20/2007 10:43:00 AM
Hakusa@gmail.com wrote:
> I just today started out with Ruby and when I tried to use the gets
> method, I get a black box with a blinking cursor in it. Nothing
> happens when I press any buttons.
print("Enter some text: ")
$stdout.flush
input = gets
puts("You entered <#{input}>")
Running in SciTE it open a cmd prompt (where the ruby interpreter is
called).
Output goes to SciTE-output pane - so you can ignore the cmd-window.
Just switch back to SciTE to enter the data and see the output.
Stefan