LogConsoleclass
Log Console output stream. This is a simple wrapper for the system log console, which allows console-style output to be captured to a file, with full processing (HTML expansion, word wrapping, etc) but without displaying anything to the game window.
This class should always be instantiated with transient instances, since the underlying system object doesn’t participate in save/restore operations.
class
LogConsole
:
OutputStream
Superclass Tree (in declaration order)
LogConsole
OutputStream
PreinitObject
ModuleExecObject
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Inherited from OutputStream
:
filterList_
justDidPara
justDidParaSuppressor
myInputManager
Inherited from ModuleExecObject
:
execAfterMe
execBeforeMe
hasInitialized_
isDoingExec_
isExecuted_
Summary of Methods
captureToFile
closeConsole
construct
writeFromStream
Inherited from OutputStream
:
addOutputFilter
addOutputFilterBelow
applyFilters
applyTextFilters
captureOutput
execute
inputLineEnd
removeOutputFilter
watchForOutput
writeToStream
Inherited from ModuleExecObject
:
_execute
classExec
Properties
handle_
our system log console handle
Methods
captureToFile (filename, charset, width, func)
Utility method: create a log file, set up to capture all console output to the log file, run the given callback function, and then close the log file and restore the console output. This can be used as a simple means of creating a file that captures the output of a command.
closeConsole ( )
Close the console. This closes the underlying system log console, which closes the operating system file. No further text can be written to the console after it’s closed.
construct (filename, charset, width)
OVERRIDDEN
create a log console
writeFromStream (txt)
OVERRIDDEN
low-level stream writer - write to our system log console
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3