File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,17 @@ protected function hasColorSupport()
95
95
return false ;
96
96
}
97
97
98
- if (\DIRECTORY_SEPARATOR === '\\' ) {
99
- return (\function_exists ('sapi_windows_vt100_support ' )
100
- && @sapi_windows_vt100_support ($ this ->stream ))
101
- || false !== getenv ('ANSICON ' )
102
- || 'ON ' === getenv ('ConEmuANSI ' )
103
- || str_starts_with ((string ) getenv ('TERM ' ), 'xterm ' );
98
+ if (\DIRECTORY_SEPARATOR === '\\'
99
+ && \function_exists ('sapi_windows_vt100_support ' )
100
+ && @sapi_windows_vt100_support ($ this ->stream )
101
+ ) {
102
+ return true ;
104
103
}
105
104
106
105
return 'Hyper ' === getenv ('TERM_PROGRAM ' )
106
+ || false !== getenv ('ANSICON ' )
107
+ || 'ON ' === getenv ('ConEmuANSI ' )
108
+ || str_starts_with ((string ) getenv ('TERM ' ), 'xterm ' )
107
109
|| stream_isatty ($ this ->stream );
108
110
}
109
111
}
You can’t perform that action at this time.
0 commit comments