Свойство | Тип | Описание | |
---|---|---|---|
$initial | |||
$isStyleForced | |||
$styles | italic and blink may not work depending of your terminal | ||
$userStyles | |||
$wrapped |
Метод | Описание | |
---|---|---|
__call ( $method, $args ) | ||
__construct ( $string = '' ) | ||
__get ( $name ) | ||
__invoke ( $string ) | ||
__toString ( ) | ||
apply ( $style, $text = null ) | ||
are256ColorsSupported ( ) | ||
bg ( $color, $text = null ) | ||
center ( $width = 80, $text = null ) | ||
clean ( $text = null ) | ||
colorize ( $text = null ) | ||
fg ( $color, $text = null ) | ||
highlight ( $color, $text = null ) | ||
isAValidStyleName ( $name ) | ||
isStyleForced ( ) | ||
isSupported ( ) : boolean | Returns true if the stream supports colorization. | |
reset ( ) | ||
setForceStyle ( $force ) | ||
setTheme ( array $theme ) | ||
setUserStyles ( array $userStyles ) | ||
strip ( $text = null ) |
Метод | Описание | |
---|---|---|
applyStyle ( $style, $text ) | ||
applyUserStyle ( $userStyle, $text ) | ||
buildEscSeq ( $style ) | ||
colorizeText ( $text ) | ||
isStyleExists ( $style ) | ||
isUserStyleExists ( $style ) | ||
replaceStyle ( $matches ) | ||
setInternalState ( $string ) | ||
shouldStylize ( ) | ||
stripColors ( $text ) | ||
stylize ( $style, $text ) |
public isSupported ( ) : boolean | ||
Результат | boolean | true if the stream supports colorization, false otherwise |
protected $styles |