From: Julian Leviston Date: 2009-02-03T11:34:11+09:00 Subject: Re: problem with Hello World test, window shut instantly It's because he's using windows and running it without opening a command line first Sent from my iPhone On 02/02/2009, at 11:34 PM, pjb@informatimago.com (Pascal J. Bourguignon) wrote: > Blackthirteen Blackthirteen writes: > >> Hello, I�fm new to ruby. So I started with the famous Hello World p >> rogram >> after installing Ruby. >> >> When I save a program as test.rb and I run it, the window open but >> shut >> very quickly. How can I see my results once I run the program I made? > > I would use emacs, both as an editor and as a shell window in which to > run ruby programs. Emacs can also be used to drive an interactive > ruby session (irb). > http://www.gnu.org/software/emacs/windows/Introduction.html > > Launch emacs, Read the tutorial (Control-h t). > > Then you can launch a shell with: M-x shell RET > and type there your commands, such as: ruby hw.rb > > For interactive ruby: M-x run-ruby RET > > You can edit your files: C-x C-f hw.rb RET > > etc... > > -- > __Pascal Bourguignon__ >