| 1 | <?php |
||
| 12 | class Cli |
||
| 13 | { |
||
| 14 | |||
| 15 | public static $enableColors = TRUE; |
||
| 16 | |||
| 17 | private static $foregroundColors = array( |
||
| 18 | 'black' => '0;30', 'dark_gray' => '1;30', 'blue' => '0;34', 'light_blue' => '1;34', 'green' => '0;32', 'light_green' => '1;32', 'cyan' => '0;36', 'light_cyan' => '1;36', 'red' => '0;31', 'light_red' => '1;31', 'purple' => '0;35', 'light_purple' => '1;35', 'brown' => '0;33', 'yellow' => '1;33', 'light_gray' => '0;37', 'white' => '1;37', |
||
| 19 | ); |
||
| 20 | |||
| 21 | private static $backgroundColors = array( |
||
| 22 | 'black' => '40', 'red' => '41', 'green' => '42', 'yellow' => '43', 'blue' => '44', 'magenta' => '45', 'cyan' => '46', 'light_gray' => '47', |
||
| 23 | ); |
||
| 24 | |||
| 25 | |||
| 26 | 28 | public static function getColoredString($string, $foreground = NULL, $background = NULL) |
|
| 45 | |||
| 46 | } |