Debug Driver - TitaniaDev/Titania-Web-Application-Firmware GitHub Wiki
Implements console output abilities into the application, capable of an unlimited number of separate consoles.
Console Class
- Method
Write(string input)
— Addsinput
to the console. - Method
WriteLn(string input)
— Addsinput
to the console, with a trailing new line. - Method
Read()
— Returns a text representation of the console.
Global Variables
This driver has predefined global variables:
- $out — The primary console object.
Examples
$console = new Console();
$console->Write("Starting application... ");
$console->WriteLn("started!");
echo $console->Read();
The above example will output Starting application... started!
since Write() does not add a new line afterwards.