Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Console] Console colorization is also provided by ConEmu on Windows

  • Loading branch information...
commit ef1ba674510b4b5e12b765dc6c58a59c849655a2 1 parent c8dc687
@hason hason authored
Showing with 7 additions and 2 deletions.
  1. +5 −0 CHANGELOG.md
  2. +2 −2 Output/StreamOutput.php
View
5 CHANGELOG.md
@@ -1,6 +1,11 @@
CHANGELOG
=========
+2.1.2
+-----
+
+ * added support for colorization on Windows via ConEmu
+
2.1.0
-----
View
4 Output/StreamOutput.php
@@ -95,7 +95,7 @@ protected function doWrite($message, $newline)
*
* Colorization is disabled if not supported by the stream:
*
- * - windows without ansicon
+ * - windows without ansicon and ConEmu
* - non tty consoles
*
* @return Boolean true if the stream supports colorization, false otherwise
@@ -104,7 +104,7 @@ protected function hasColorSupport()
{
// @codeCoverageIgnoreStart
if (DIRECTORY_SEPARATOR == '\\') {
- return false !== getenv('ANSICON');
+ return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI');
}
return function_exists('posix_isatty') && @posix_isatty($this->stream);
Please sign in to comment.
Something went wrong with that request. Please try again.