Skip to content

Conversation

@0xfalafel
Copy link

@0xfalafel 0xfalafel commented Apr 10, 2025

$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size ($width, $height)

Can fail with the following error message:

Exception setting "buffersize": "Cannot set the buffer size because the size specified is too large or too small.

By specifying some large static value, we avoid this issue.

I did also change the line for WindowSize to match the style of the line above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant