Updated core, terminal detection
This commit is contained in:
parent
667248687b
commit
2dac6846b1
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue