Public Properties
 PropertyDefined By
  console : InteractiveConsole
This is the default console.
system.terminals
  output : Function
Text output function.
system.terminals
Function detail
Property Detail
consoleproperty
public var console:InteractiveConsole

This is the default console.


Example
override it with your own implementation
    
    package
    {
        import system.terminals.console;
        import com.test.MyConsole; // new to implent InteractiveConsole interface
        
        public class Test
        {
            public function Test()
            {
                system.terminals.console = new MyConsole();
            }
        }
    }
    
    
outputproperty 
public var output:Function

Text output function. You can replace it with any custom function or method to write to text file, to display in a TextField, send to socket, etc. by default it uses the trace() function.

The function signature is the following: function name( message:String ):void.


Example
using a custom output method
    
    package
    {
        import system.terminals.output;
        
        public class Test
        {
            public function Test()
            {
                system.terminals.output = myoutput;
            }
            
            public function myoutput( msg:String ):void
            {
                trace( "[" + msg + "]" );
            }
        }
    }