From: Jeffrey Van alstine Date: 2009-08-04T14:59:45+09:00 Subject: Re: SciTE Hangs with gets() Chris Shea wrote: > On Aug 2, 5:26�pm, Jeffrey Van alstine wrote: >> solution, or a link to a site addressing the issue. >> -- >> Posted viahttp://www.ruby-forum.com/. > > Ha. I'm the one who said it was well-discussed. If the problem is > still what it used to be (something between SciTE and stdin), try > adding this to the top of your source: > > $stdin.sync = true > > I got that from the same thread I said this was well-worn territory: > http://www.ruby-forum.com/topic/101677#223367 (For some reason, I > couldn't find that thread in Google Groups.) > > Have you tried that? > > HTH, > Chris I did try the things posted in that thread, but setting sync had no effect. The one that did work was $stdout.flush but it only worked for the very next gets(). You have to pair to run that line before every single gets(), which is just a pain in the butt when you're trying to get a handle on the language. -- Posted via http://www.ruby-forum.com/.