Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
callbacks: * Stores all of the callbacks |
|
public |
con: * Stores the console div |
|
public |
input: * Stores the input textbox |
Method Summary
Public Methods | ||
public |
addcallback(id: string, callback: function) Adds callbacks that are called whem something is entered into the console |
|
public |
callcallbacks(args: *) Calls all callbacks with a variable amount of arguments |
|
public |
Makes the text appropiate for printing |
|
public |
enter() Called when enter is hit from the console input |
|
public |
Gets the current input |
|
public |
Prints text to the Console. |
|
public |
removecallback(id: string) Removes a callback |
Public Constructors
public constructor source
Public Members
Public Methods
public addcallback(id: string, callback: function) source
Adds callbacks that are called whem something is entered into the console
public callcallbacks(args: *) source
Calls all callbacks with a variable amount of arguments
Params:
Name | Type | Attribute | Description |
args | * |
public consolify(text: string): string source
Makes the text appropiate for printing
Params:
Name | Type | Attribute | Description |
text | string |