Property | Type | Description | |
---|---|---|---|
$_vt100 | array | ANSI/VT100 color/format sequences. | |
$_vtbackground | string | The default background color. | |
$_vtcolor | string | The default color. | |
$_vtstyle | string | The default style. |
Method | Description | |
---|---|---|
bell ( integer $count = 1 ) | Bells. | |
color ( mixed $string, string | array $options = null ) | Return a VT100 colored string. |
Method | Description | |
---|---|---|
_vt100 ( mixed $name ) : integer | Returns a ANSI/VT100 number from a color name. | |
_vtbackground ( mixed $name ) : integer | Returns the ANSI/VT100 number from a backgound color name. | |
_vtcolor ( mixed $name ) : integer | Returns the ANSI/VT100 number from a color name. | |
_vtstyle ( mixed $name ) : integer | Returns a ANSI/VT100 number from a style name. |
protected static _vtbackground ( mixed $name ) : integer | ||
$name | mixed | A backgound color name string or a ANSI/VT100 number. |
return | integer | A ANSI/VT100 number. |
public static color ( mixed $string, string | array $options = null ) | ||
$string | mixed | The string to color. |
$options | string | array | The possible values for an array are: - `'style`: a style code. - `'color'`: a color code. - `'background'`: a background color code. The string must respect one of the following format: - `'style;color;background'`. - `'style;color'`. - `'color'`. |
protected static array $_vt100 | ||
return | array |
protected static string $_vtbackground | ||
return | string |
protected static string $_vtcolor | ||
return | string |
protected static string $_vtstyle | ||
return | string |