Метод |
Описание |
|
beep ( $num = 1 ) |
Beeps a certain number of times. |
|
clear_screen ( ) |
Clears the screen of output |
|
color ( $text, $foreground, $background = null ) |
Returns the given text with the correct color codes for a foreground and optionally a background color. |
|
error ( $text = '', $foreground = 'light_red', $background = null ) |
Outputs an error to the CLI using STDERR instead of STDOUT |
|
input ( $prefix = '' ) |
Get input from the shell, using readline or the standard STDIN |
|
is_windows ( ) |
if operating system === windows |
|
new_line ( $num = 1 ) |
Enter a number of empty lines |
|
option ( $name, $default = false ) |
Returns the option with the given name. You can also give the option number. |
|
spawn ( $call, $output = '/dev/null' ) |
Spawn Background Process |
|
wait ( $seconds, $countdown = false ) |
Waits a certain number of seconds, optionally showing a wait message and waiting for a key press. |
|
write ( $text = '', $foreground = null, $background = null ) |
Outputs a string to the cli. If you send an array it will implode them with a line break. |
|