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)
5252 {
5353 parent ::__construct ($ output );
5454
55- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) && false !== @getenv ('ANSICON ' )) {
55+ if ('\\' === DIRECTORY_SEPARATOR && false !== @getenv ('ANSICON ' )) {
5656 // Use only the base 16 xterm colors when using ANSICON
5757 $ this ->setStyles (array (
5858 'default ' => '31 ' ,
@@ -394,7 +394,7 @@ protected function supportsColors()
394394 }
395395 }
396396
397- if (defined ( ' PHP_WINDOWS_VERSION_MAJOR ' ) ) {
397+ if ('\\' === DIRECTORY_SEPARATOR ) {
398398 static ::$ defaultColors = @(false !== getenv ('ANSICON ' ) || 'ON ' === getenv ('ConEmuANSI ' ));
399399 } elseif (function_exists ('posix_isatty ' )) {
400400 $ h = stream_get_meta_data ($ this ->outputStream ) + array ('wrapper_type ' => null );
You can’t perform that action at this time.
0 commit comments