Text UI
A simple and fast way to take user input and display output in text mode using PHP.
|
Static Public Member Functions | |
static | send (string $command) |
Data Fields | |
const string | CLEAR_SCREEN = "\x1b[H\x1b[2J" |
const string | CLEAR_LINE = "\x1b[2K" |
const string | GOTO_LINE_START = "\r" |
Sends ANSI commands to the terminal.
Definition at line 10 of file Command.php.
|
static |
Sends an ANSI command to the terminal.
string | $command | The ANSI command, including ESC[, to be sent to the terminal. |
Definition at line 34 of file Command.php.
const string CLEAR_LINE = "\x1b[2K" |
Deletes the entire line.
Definition at line 20 of file Command.php.
const string CLEAR_SCREEN = "\x1b[H\x1b[2J" |
Clear screen.
Definition at line 15 of file Command.php.
const string GOTO_LINE_START = "\r" |
Moves the cursor to the beginning of the line.
Definition at line 25 of file Command.php.