From: ts Date: 2001-08-04T23:23:12+09:00 Subject: [ruby-talk:19136] Re: Unbuffered output >>>>> "H" == Harry Ohlsen writes: H> ts wrote: >> Try something like this >> >> begin >> print "-> " >> $defout.flush >> end while gets H> That doesn't work, either. H> I find this really weird, because this is something I'd expect to work H> pretty much 100%. I'm starting to think it's an idiosyncracy of the H> particular build I have. I might see if there's a newer nightly snapshot H> and give that a go. Well, this code work for me with 1.6.4 and 1.7.1 pigeon% cat ~/b.rb #!/usr/bin/ruby begin print "-> " $defout.flush end while gets pigeon% pigeon% ruby -v ~/b.rb ruby 1.7.1 (2001-07-31) [i686-linux] -> aaaaa -> bbbb -> pigeon% Guy Decoux