merged branch hason/conemu (PR #5498)
Commits
-------
bb2566c
[Console] Console colorization is also provided by ConEmu on Windows
Discussion
----------
[Console] Console colorization is also provided by ConEmu on Windows
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
License of the code: MIT
See http://code.google.com/p/conemu-maximus5/wiki/AnsiEscapeCodes#Переменная_окружения
---------------------------------------------------------------------------
by fabpot at 2012-09-16T07:43:55Z
Can you add a note about it in the changelog of the component? thanks
This commit is contained in:
commit
ddb8e5c551
@ -1,6 +1,11 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
2.1.2
|
||||||
|
-----
|
||||||
|
|
||||||
|
* added support for colorization on Windows via ConEmu
|
||||||
|
|
||||||
2.1.0
|
2.1.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ class StreamOutput extends Output
|
|||||||
*
|
*
|
||||||
* Colorization is disabled if not supported by the stream:
|
* Colorization is disabled if not supported by the stream:
|
||||||
*
|
*
|
||||||
* - windows without ansicon
|
* - windows without ansicon and ConEmu
|
||||||
* - non tty consoles
|
* - non tty consoles
|
||||||
*
|
*
|
||||||
* @return Boolean true if the stream supports colorization, false otherwise
|
* @return Boolean true if the stream supports colorization, false otherwise
|
||||||
@ -104,7 +104,7 @@ class StreamOutput extends Output
|
|||||||
{
|
{
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
if (DIRECTORY_SEPARATOR == '\\') {
|
if (DIRECTORY_SEPARATOR == '\\') {
|
||||||
return false !== getenv('ANSICON');
|
return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI');
|
||||||
}
|
}
|
||||||
|
|
||||||
return function_exists('posix_isatty') && @posix_isatty($this->stream);
|
return function_exists('posix_isatty') && @posix_isatty($this->stream);
|
||||||
|
Reference in New Issue
Block a user