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;
}
}