From: Tim Pease Date: 2008-07-16T10:38:14+09:00 Subject: Re: Immediately print a string on stdout without new line? On Jul 15, 2008, at 3:17 PM, fedzor wrote: > > Try this: > > print "Processing... " > STDOUT.flush > > sleep 3 > > puts "done" > > STDOUT#flush will ensure that everything in the buffer will be > printed, there and then > Another option ... STDOUT.sync = true print "Processing... " The sync flag will cause the IO stream to be flushed after every write / print / puts. Blessings, TwP