Skip to content

Commit

Permalink
Add support for Mintty when detecting color support on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Mar 18, 2016
1 parent 0c3c2be commit 67c1890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IO/OutputStream/StreamOutputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function flush()
public function supportsAnsi()
{
if (DIRECTORY_SEPARATOR === '\\') {
return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI');
return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI') || 'xterm' === getenv('TERM');
}

return function_exists('posix_isatty') && @posix_isatty($this->stream);
Expand Down

0 comments on commit 67c1890

Please sign in to comment.