From: Chuck Brotman Date: 2005-06-21T10:05:36+09:00 Subject: Re: YANQ: Yet Another Newbe question... irb Robert, You've got it! Yes that's the problem I'm having! James, Here are the actual results showing "the problem" andthat end does the trick: c:\ruby182-15\freeride>irb irb(main):001:0> if 1==1 irb(main):002:1> puts "yes" irb(main):003:1> irb(main):004:1* irb(main):005:1* irb(main):006:1* irb(main):007:1* irb(main):008:1* end yes => nil irb(main):009:0> => nil Thanks again!! "Robert Klemme" wrote in message news:3hohmbFi1921U1@individual.net... > James Edward Gray II wrote: >> On Jun 20, 2005, at 1:30 PM, Chuck Brotman wrote: >> >>> When using the irb I sometimes end up in a state where hitting >>> enter only >>> gives me a new prompt. I understand that I've (somehow) gotteninto >>> the irb's >>> line continuation mode. It seems that anything I type at this point >>> gets >>> swallowed up. Is there some way to get out of this, without >>> exiting from >>> the irb altogether? >> >> Hmm, could you show us some examples? >> >> James Edward Gray II > > He means: > >>> if 1 == 1 >>> puts 'yes' >>> > ?> > ?> > ?> > ?> > ?> > > Now two things help here: > > - entering "end" until the normal prompt comes back. > > - pressing CTRL-C > > Note, how "exit" does *not* help. :-) > > Chuck, with your question frequency you might want to join #ruby-lang on > freenode - a lot of Ruby folks hang out there and you usually get > immediate feedback (plus some weired comments, if someone is in the > mood... :-)) > > Kind regards > > robert >