We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a314b65 commit cec978dCopy full SHA for cec978d
src/Symfony/Component/Console/Output/StreamOutput.php
@@ -106,7 +106,7 @@ protected function hasColorSupport(): bool
106
&& @sapi_windows_vt100_support($this->stream))
107
|| false !== getenv('ANSICON')
108
|| 'ON' === getenv('ConEmuANSI')
109
- || 'xterm' === getenv('TERM');
+ || \str_starts_with((string) getenv('TERM'), 'xterm');
110
}
111
112
return stream_isatty($this->stream);
0 commit comments