console\Controller isColorEnabled()

isColorEnabled() public method

Returns a value indicating whether ANSI color is enabled.

ANSI color is enabled only if $color is set true or is not set and the terminal supports ANSI color.

public boolean isColorEnabled ( $stream = \STDOUT )
$stream resource

The stream to check.

return boolean

Whether to enable ANSI style in output.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.