This commit is contained in:
yunwuxin
2016-09-09 15:03:35 +08:00
parent ebaaf6181c
commit b9b425d143
2 changed files with 6 additions and 6 deletions

View File

@@ -25,10 +25,10 @@ use think\console\output\question\Confirmation;
* Class Output
* @package think\console
*
* @see think\console\output\driver\Console::setDecorated
* @see \think\console\output\driver\Console::setDecorated
* @method void setDecorated($decorated)
*
* @see think\console\output\driver\Buffer::fetch
* @see \think\console\output\driver\Buffer::fetch
* @method string fetch()
*
* @method void info($message)

View File

@@ -356,10 +356,10 @@ class Console
{
if (DIRECTORY_SEPARATOR === '\\') {
return
0 >= version_compare('10.0.10586', PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD)
|| false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')
|| 'xterm' === getenv('TERM');
'10.0.10586' === PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD
|| false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')
|| 'xterm' === getenv('TERM');
}
return function_exists('posix_isatty') && @posix_isatty($stream);