Skip to content

Commit

Permalink
Check for Hyper terminal on all operating systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz authored and nicolas-grekas committed Jul 4, 2018
1 parent 15489d2 commit 93a9a78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DeprecationErrorHandler.php
Expand Up @@ -226,13 +226,16 @@ private static function hasColorSupport()
return false;
}

if ('Hyper' === getenv('TERM_PROGRAM')) {
return true;
}

if (DIRECTORY_SEPARATOR === '\\') {
return (function_exists('sapi_windows_vt100_support')
&& sapi_windows_vt100_support(STDOUT))
|| false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')
|| 'xterm' === getenv('TERM')
|| 'Hyper' === getenv('TERM_PROGRAM');
|| 'xterm' === getenv('TERM');
}

if (function_exists('stream_isatty')) {
Expand Down

0 comments on commit 93a9a78

Please sign in to comment.