lua-users home
lua-l archive

Re: Stdout

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


> With respect to the output stream problem on Windows. ie. you cannot
> redirect stdout easily to catch Lua output.
See previous messages. There are very few functions that use _OUTPUT: print
and write are the only ones that spring to mind. You can trap these. Ditto
for _INPUT and read. If you want to use the handles directly in your own
routines it's admittedly trickier.
> [suggestions snipped]
This is all be done within Lua already: _STDOUT, _STDIN and _STDERR.
-- 
http://sc3d.org/rrt/ | aphorism, n. a wise lie

AltStyle によって変換されたページ (->オリジナル) /