Automatically enable ANSI colours on Windows versions that support it

Note that stream_isatty() and sapi_windows_vt100_support() are ONLY defined on PHP 7.2, and the latter is only available on Windows.
This commit is contained in:
Dylan K. Taylor
2017-09-16 11:22:58 +01:00
parent 30d2318bb7
commit bdee746e46
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ if(Test-Path "PocketMine-MP.phar"){
}
function StartServer{
$command = "powershell " + $binary + " " + $file + " --enable-ansi " + $extraPocketMineArgs
$command = "powershell " + $binary + " " + $file + " " + $extraPocketMineArgs
iex $command
}