Class Colors
Class Colors
Handles color output on (Linux) terminals
Namespace: splitbrain\phpcli
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/Colors.php
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/Colors.php
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
string |
C_RESET
|
#
'reset'
|
string |
C_BLACK
|
#
'black'
|
string |
C_DARKGRAY
|
#
'darkgray'
|
string |
C_BLUE
|
#
'blue'
|
string |
C_LIGHTBLUE
|
#
'lightblue'
|
string |
C_GREEN
|
#
'green'
|
string |
C_LIGHTGREEN
|
#
'lightgreen'
|
string |
C_CYAN
|
#
'cyan'
|
string |
C_LIGHTCYAN
|
#
'lightcyan'
|
string |
C_RED
|
#
'red'
|
string |
C_LIGHTRED
|
#
'lightred'
|
string |
C_PURPLE
|
#
'purple'
|
string |
C_LIGHTPURPLE
|
#
'lightpurple'
|
string |
C_BROWN
|
#
'brown'
|
string |
C_YELLOW
|
#
'yellow'
|
string |
C_LIGHTGRAY
|
#
'lightgray'
|
string |
C_WHITE
|
#
'white'
|
protected
array
|
$colors
known color names |
#
array(
self::C_RESET => "\33[0m",
self::C_BLACK => "\33[0;30m",
self::C_DARKGRAY => "\33[1;30m",
self::C_BLUE => "\33[0;34m",
self::C_LIGHTBLUE => "\33[1;34m",
self::C_GREEN => "\33[0;32m",
self::C_LIGHTGREEN => "\33[1;32m",
self::C_CYAN => "\33[0;36m",
self::C_LIGHTCYAN => "\33[1;36m",
self::C_RED => "\33[0;31m",
self::C_LIGHTRED => "\33[1;31m",
self::C_PURPLE => "\33[0;35m",
self::C_LIGHTPURPLE => "\33[1;35m",
self::C_BROWN => "\33[0;33m",
self::C_YELLOW => "\33[1;33m",
self::C_LIGHTGRAY => "\33[0;37m",
self::C_WHITE => "\33[1;37m",
)
|
protected
boolean
|
$enabled
should colors be used? |
#
true
|