From: HarryO Date: 2001-12-31T19:21:50+09:00 Subject: [ruby-talk:29834] Re: Unbuffered print On Mon, 31 Dec 2001 20:54:48 +1100, Nigel Gilbert wrote: > I have a program that takes about a second to go round a loop. Every > time it does so, I want to print a dot ('.') to standard out, so that I > can see that something is happening. If I just use 'print "."', nothing > is output until I print a newline. What should I be using? You could either write to $stderr, which is unbuffered. Eg, $stderr.print "Hello" or change the "sync" mode for $stdout, as in $stdout.sync = true which will cause all data to be written immediately.