File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function __construct($output = null)
52
52
{
53
53
parent ::__construct ($ output );
54
54
55
- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) && false !== @getenv ('ANSICON ' )) {
55
+ if ('\\' === DIRECTORY_SEPARATOR && false !== @getenv ('ANSICON ' )) {
56
56
// Use only the base 16 xterm colors when using ANSICON
57
57
$ this ->setStyles (array (
58
58
'default ' => '31 ' ,
@@ -394,7 +394,7 @@ protected function supportsColors()
394
394
}
395
395
}
396
396
397
- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) ) {
397
+ if ('\\' === DIRECTORY_SEPARATOR ) {
398
398
static ::$ defaultColors = @(false !== getenv ('ANSICON ' ) || 'ON ' === getenv ('ConEmuANSI ' ));
399
399
} elseif (function_exists ('posix_isatty ' )) {
400
400
$ h = stream_get_meta_data ($ this ->outputStream ) + array ('wrapper_type ' => null );
You can’t perform that action at this time.
0 commit comments