8000 Check for Hyper terminal on all operating systems. · symfony/phpunit-bridge@93a9a78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93a9a78

Browse files
azjezznicolas-grekas
authored andcommitted
Check for Hyper terminal on all operating systems.
1 parent 15489d2 commit 93a9a78

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

DeprecationErrorHandler.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,16 @@ private static function hasColorSupport()
226226
return false;
227227
}
228228

229+
if ('Hyper' === getenv('TERM_PROGRAM')) {
230+
return true;
231+
}
232+
229233
if (DIRECTORY_SEPARATOR === '\\') {
230234
return (function_exists('sapi_windows_vt100_support')
231235
&& sapi_windows_vt100_support(STDOUT))
232236
|| false !== getenv('ANSICON')
233237
|| 'ON' === getenv('ConEmuANSI')
234-
|| 'xterm' === getenv('TERM')
235-
|| 'Hyper' === getenv('TERM_PROGRAM');
238+
|| 'xterm' === getenv('TERM');
236239
}
237240

238241
if (function_exists('stream_isatty')) {

0 commit comments

Comments
 (0)
0