LogConsoleclassoutput.t[1876]

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  

handle_ 

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_output.t[1936]

our system log console handle

Methods  

captureToFile (filename, charset, width, func)output.t[1884]

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 ( )output.t[1919]
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)OVERRIDDENoutput.t[1899]
create a log console

writeFromStream (txt)OVERRIDDENoutput.t[1933]
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