-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: initialRows (or buffersize) doesn't get updated on windows size changes #2630
Comments
@Vreyesm Out of curiosity, does this repro if you execute |
@zadjii-msft Executing |
I too have this problem as described, yet my default profile is I can confirm the workaround described, opening a new tab: the new tab doesn't have the problem. Thanks for that tip. |
Hey so while burning down bugs, it looks like this is the same bug as #2815. This one was filed first, but the other one's got a bit more details on the specific root cause of the problem, so I'm going to mark that one as the parent bug. Regardless, I've got a fix ready for these that should be in PR later today. Thanks! /dup #2815 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@zadjii-msft - I believe it is thrown due to SetCursorPosition. Please See Below: Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. Any thoughts? thx |
@zadjii-msft - I think I found the issue. The old school conhost.exe apparently auto resizes buffer rows without any explicit setting. If I set the console buffer height explicitly. No error. It works as intended. perfectly. Please let anyone know that had similar issue. Thanks again msft. |
Environment
Steps to reproduce
initialRows
value to something like 30 rows (a value that makes the openned window has less rows than the maximized window should have).ps
,ls
ordir
).Expected behavior
initialRows
gets updated after window size changes.Actual behavior
ps
the buffer size setted with theinitialRows
value doesn't get updated after the window size changes.The text was updated successfully, but these errors were encountered: