Skip to content

Commit 15489d2

Browse files
azjezzfabpot
authored andcommitted
Add color support for Hyper terminal .
1 parent 78f25bc commit 15489d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ private static function hasColorSupport()
231231
&& sapi_windows_vt100_support(STDOUT))
232232
|| false !== getenv('ANSICON')
233233
|| 'ON' === getenv('ConEmuANSI')
234-
|| 'xterm' === getenv('TERM');
234+
|| 'xterm' === getenv('TERM')
235+
|| 'Hyper' === getenv('TERM_PROGRAM');
235236
}
236237

237238
if (function_exists('stream_isatty')) {

0 commit comments

Comments
 (0)