There are two types of buffered I/O in question. One is caused by not closing the output channel under *NIX and the other happens within the browser itself. The former was not being turned off because it can't be from the browser. I haven't tried it, but maybe closing and reopening STDOUT would flush it?