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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy