How do I make my XP console window not close so fast?
Very basic yes, but I've looked high & low... TIA.
| SitePoint Sponsor |
How do I make my XP console window not close so fast?
Very basic yes, but I've looked high & low... TIA.



What are you doing with it? The console window will close once the program that oppened it finishes running. But if you go to start -> run -> cmd then it'll stay open until you close it... you can just run the programs from there.
I'm running the very basic 2 or 3 line prgs just to get a feel for Ruby and since the console closes right away, I'm not learning anything. Unless there is a Ruby cmd that I can use with each .rb or a Ruby (or Windows) setting that I can use to keep the console window open, how do I see the output? TIA.



How are you running them? To run .rb files I do ths ina command prompt:
That would keep it open. But if I double click a RB file, the command prompt will close immediately after the program finishes executing (as it should).Code:ruby bla.rb
I see, I was running from the Explorer window, it does as you said from the console though, thx.




This window:
Will not close until you press [enter].Code:puts "Hello World!" gets
Why not use interactive ruby to try out a few lines of code?
Start > Run > Cmd
At the prompt, type 'irb' then hit enter



yes that'd be good but I got the impressoin here that he was just trying to run a ruby application...





This is the Cadillac of programming language learning.Originally Posted by Homan
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
Bookmarks