Skip to content

Commit

Permalink
Environment: terminal detection by upper cased TERM environment varia…
Browse files Browse the repository at this point in the history
…ble [Closes nette#324]
  • Loading branch information
Beutlin authored and milo committed Jul 7, 2016
1 parent d66660e commit 97b0f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function setupColors()
? (bool) getenv(self::COLORS)
: ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg')
&& ((function_exists('posix_isatty') && posix_isatty(STDOUT))
|| getenv('ConEmuANSI') === 'ON' || getenv('ANSICON') !== FALSE) || getenv('term') === 'xterm-256color');
|| getenv('ConEmuANSI') === 'ON' || getenv('ANSICON') !== FALSE) || getenv('TERM') === 'xterm-256color');

ob_start(function ($s) {
return self::$useColors ? $s : Dumper::removeColors($s);
Expand Down

0 comments on commit 97b0f79

Please sign in to comment.