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 4496b59 commit 109c088Copy full SHA for 109c088
src/Symfony/Component/Console/Output/StreamOutput.php
@@ -64,9 +64,6 @@ public function getStream()
64
return $this->stream;
65
}
66
67
- /**
68
- * {@inheritdoc}
69
- */
70
protected function doWrite(string $message, bool $newline)
71
{
72
if ($newline) {
@@ -103,7 +100,7 @@ protected function hasColorSupport()
103
100
&& @sapi_windows_vt100_support($this->stream))
104
101
|| false !== getenv('ANSICON')
105
102
|| 'ON' === getenv('ConEmuANSI')
106
- || 'xterm' === getenv('TERM');
+ || str_starts_with((string) getenv('TERM'), 'xterm');
107
108
109
return 'Hyper' === getenv('TERM_PROGRAM')
0 commit comments