Neos\Flow\Cli\Response::hasColorSupport PHP Méthode

hasColorSupport() public méthode

Regardless of this setting content will only be styled with output format set to "styled".
public hasColorSupport ( ) : boolean
Résultat boolean TRUE if the terminal support ANSI colors, otherwise FALSE
    public function hasColorSupport()
    {
        if ($this->colorSupport !== null) {
            return $this->colorSupport;
        }
        if (DIRECTORY_SEPARATOR !== '\\') {
            return function_exists('posix_isatty') && posix_isatty(STDOUT);
        } else {
            return getenv('ANSICON') !== false;
        }
    }