lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ron Hudson wrote:
Does Lua cache changes to the screen until enough happens
to require a redraw?  Is linux console not keeping up
with my program?

Neither, really.  'print' prints to stdout.  stdout is typically
buffered, so actual character output will happen burstily as
the buffer fills up.

You can flush stdout as often as you like though, like any other
file handle.  io.flush() is probably what you need.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3