From d1d51aa3bb992d73bdb17ab32075e0c6995c9af4 Mon Sep 17 00:00:00 2001 From: Lasne Olivier <4268373+0xfalafel@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:03:38 +0200 Subject: [PATCH] Fix issue when updating Buffersize --- ResizeConsole.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ResizeConsole.ps1 b/ResizeConsole.ps1 index 27304e5..39bc145 100644 --- a/ResizeConsole.ps1 +++ b/ResizeConsole.ps1 @@ -1,4 +1,4 @@ $width=80 $height=24 -$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size ($width, $height) -$host.UI.RawUI.WindowSize = New-Object -TypeName System.Management.Automation.Host.Size -ArgumentList ($width, $height) \ No newline at end of file +$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (1000, 9999) +$host.UI.RawUI.WindowSize = New-Object System.Management.Automation.Host.Size ($width, $height)