Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b93c209

Browse filesBrowse files
committed
fix xterm detection
1 parent 8d06a8a commit b93c209
Copy full SHA for b93c209

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Output/StreamOutput.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function hasColorSupport()
107107
&& @sapi_windows_vt100_support($this->stream))
108108
|| false !== getenv('ANSICON')
109109
|| 'ON' === getenv('ConEmuANSI')
110-
|| 'xterm' === getenv('TERM');
110+
|| \str_starts_with((string) getenv('TERM'), 'xterm');
111111
}
112112

113113
return stream_isatty($this->stream);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.