8000 fix: xterm detection · symfony/symfony@cec978d · GitHub
[go: up one dir, main page]

Skip to content

Commit cec978d

Browse files
committed
fix: xterm detection
1 parent a314b65 commit cec978d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Output/StreamOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function hasColorSupport(): bool
106106
&& @sapi_windows_vt100_support($this->stream))
107107
|| false !== getenv('ANSICON')
108108
|| 'ON' === getenv('ConEmuANSI')
109-
|| 'xterm' === getenv('TERM');
109+
|| \str_starts_with((string) getenv('TERM'), 'xterm');
110110
}
111111

112112
return stream_isatty($this->stream);

0 commit comments

Comments
 (0)
0