public function __construct($stream = 'php://stdout')
{
$this->_output = fopen($stream, 'w');
if (DIRECTORY_SEPARATOR === '\\' && !(bool) env('ANSICON') && env('ConEmuANSI') !== 'ON' || function_exists('posix_isatty') && !posix_isatty($this->_output)) {
$this->_outputAs = self::PLAIN;
}
}