Skip to content

Commit

Permalink
fix: xterm detection
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Dec 8, 2023
1 parent a314b65 commit cec978d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Output/StreamOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function hasColorSupport(): bool
&& @sapi_windows_vt100_support($this->stream))
|| false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')
|| 'xterm' === getenv('TERM');
|| \str_starts_with((string) getenv('TERM'), 'xterm');
}

return stream_isatty($this->stream);
Expand Down

0 comments on commit cec978d

Please sign in to comment.