From: Raphael Clancy Date: 2009-02-14T04:31:30+09:00 Subject: Re: New to Ruby. Why does the command line pop up an then go awa Raphael Clancy wrote: > This is not as correct as the other approaches, but you can also end > your code with "getc" then the program will pause until you press enter. > > John Budd wrote: >> When ever I run a code file .rb >> >> The code, >> >> puts "Hello" >> >> I get the command prompt that flashes for a moment but does not stay up. >> >> >> How do I fix this. Sigh... "getc" is sorta deprecated. Use "gets" or "STDIN.getc" if you get a warning with "getc". (I guess it was even less correct than I thought ;-D ) -- Posted via http://www.ruby-forum.com/.