Property | Type | Description | |
---|---|---|---|
$columns | Maximum terminal width | ||
$enableColor | Is color allowed in terminal? |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
clearScreen ( ) : void | Clear the terminal with CLR | |
drawParam ( string $name, string $description, array $values = '' ) : void | Draw param (like in man) | |
drawTable ( $rows ) : void | Draw a table | |
enableColor ( boolean $bool = true ) : void | Enables/disable color | |
readln ( ) : string | Read a line from STDIN | |
resetStyle ( ) : void | Reset style to default | |
setStyle ( string $c ) : void | Set text style |
Method | Description | |
---|---|---|
getMaxColumns ( ) : integer | Counting terminal char width |
public enableColor ( boolean $bool = true ) : void | ||
$bool | boolean | Enable? |
return | void |
protected getMaxColumns ( ) : integer | ||
return | integer |