浏览代码

Updated core, terminal detection

markseu 3 年之前
父节点
当前提交
2dac6846b1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      system/extensions/core.php
  2. 二进制
      system/extensions/install-language.bin

+ 2 - 2
system/extensions/core.php

@@ -3301,11 +3301,11 @@ class YellowToolbox {
     public function detectTerminalInformation() {
         $width = $height = 0;
         if (strtoupperu(substru(PHP_OS, 0, 3))=="WIN") {
-            exec("powershell $Host.UI.RawUI.WindowSize.Width", $outputLines, $returnStatus);
+            exec("powershell \$Host.UI.RawUI.WindowSize.Width", $outputLines, $returnStatus);
             if ($returnStatus==0 && !empty($outputLines)) {
                 $width = intval(end($outputLines));
             }
-            exec("powershell $Host.UI.RawUI.WindowSize.Height", $outputLines, $returnStatus);
+            exec("powershell \$Host.UI.RawUI.WindowSize.Height", $outputLines, $returnStatus);
             if ($returnStatus==0 && !empty($outputLines)) {
                 $height = intval(end($outputLines));
             }

二进制
system/extensions/install-language.bin