mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正
This commit is contained in:
@@ -25,10 +25,10 @@ use think\console\output\question\Confirmation;
|
|||||||
* Class Output
|
* Class Output
|
||||||
* @package think\console
|
* @package think\console
|
||||||
*
|
*
|
||||||
* @see think\console\output\driver\Console::setDecorated
|
* @see \think\console\output\driver\Console::setDecorated
|
||||||
* @method void setDecorated($decorated)
|
* @method void setDecorated($decorated)
|
||||||
*
|
*
|
||||||
* @see think\console\output\driver\Buffer::fetch
|
* @see \think\console\output\driver\Buffer::fetch
|
||||||
* @method string fetch()
|
* @method string fetch()
|
||||||
*
|
*
|
||||||
* @method void info($message)
|
* @method void info($message)
|
||||||
|
|||||||
@@ -356,10 +356,10 @@ class Console
|
|||||||
{
|
{
|
||||||
if (DIRECTORY_SEPARATOR === '\\') {
|
if (DIRECTORY_SEPARATOR === '\\') {
|
||||||
return
|
return
|
||||||
0 >= version_compare('10.0.10586', PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD)
|
'10.0.10586' === PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD
|
||||||
|| false !== getenv('ANSICON')
|
|| false !== getenv('ANSICON')
|
||||||
|| 'ON' === getenv('ConEmuANSI')
|
|| 'ON' === getenv('ConEmuANSI')
|
||||||
|| 'xterm' === getenv('TERM');
|
|| 'xterm' === getenv('TERM');
|
||||||
}
|
}
|
||||||
|
|
||||||
return function_exists('posix_isatty') && @posix_isatty($stream);
|
return function_exists('posix_isatty') && @posix_isatty($stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user