Launch size doesn't have a sensible max value #16151

Closed
opened 2026-01-31 04:59:04 +00:00 by claunia · 3 comments
Owner

Originally created by @f1WN356Uh51a1W6cn on GitHub (Dec 16, 2021).

Windows Terminal version

1.11.2921.0

Windows build number

10.0.22000.376

Other Software

No response

Steps to reproduce

Setting the max columns or rows visible on start to a crazy value like 900000000 doesn't make any sense. I also got an error.

Expected Behavior

No response

Actual Behavior

Originally created by @f1WN356Uh51a1W6cn on GitHub (Dec 16, 2021). ### Windows Terminal version 1.11.2921.0 ### Windows build number 10.0.22000.376 ### Other Software _No response_ ### Steps to reproduce Setting the max columns or rows visible on start to a crazy value like 900000000 doesn't make any sense. I also got an error. ### Expected Behavior _No response_ ### Actual Behavior ![](https://user-images.githubusercontent.com/62265474/146324749-4f648a82-d686-4e48-ace8-98d3d23716de.png)
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2022):

That's a good point, thanks!

@zadjii-msft commented on GitHub (Jan 3, 2022): That's a good point, thanks!
Author
Owner

@marcelwgn commented on GitHub (Mar 21, 2024):

@zadjii-msft Mind if I take my shot at this? Would probably just add a max value to the NumberBoxes and also clamp the read sizes from the settings file to something like 1000

@marcelwgn commented on GitHub (Mar 21, 2024): @zadjii-msft Mind if I take my shot at this? Would probably just add a max value to the NumberBoxes and also clamp the read sizes from the settings file to something like 1000
Author
Owner

@zadjii-msft commented on GitHub (Apr 1, 2024):

@marcelwgn you're always free to just take a shot at anything around these parts 😝

Technically, there's code somewhere in screenInfo.cpp that conhost uses to try and figure out the max size of a window for the display it's currently on. But I think using that here would probably be overkill. I'm sure 1000 columns is more than enough, even for like a 8k ultrawide or something ridiculous.

@zadjii-msft commented on GitHub (Apr 1, 2024): @marcelwgn you're always free to just take a shot at anything around these parts 😝 Technically, there's code somewhere in screenInfo.cpp that conhost uses to try and figure out the max size of a window for the display it's currently on. But I think using that here would probably be overkill. I'm sure 1000 columns is more than enough, even for like a 8k ultrawide or something ridiculous.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16151