Skip to content

Commit

Permalink
refactor: hyper check
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Dec 8, 2023
1 parent 8d06a8a commit 9c09e16
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Symfony/Component/Console/Output/StreamOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ protected 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($this->stream))
Expand All @@ -110,6 +106,7 @@ protected function hasColorSupport()
|| 'xterm' === getenv('TERM');
}

return stream_isatty($this->stream);
return 'Hyper' === getenv('TERM_PROGRAM')
|| stream_isatty($this->stream);
}
}

0 comments on commit 9c09e16

Please sign in to comment.