Terminal: Allow the user to set the minimum window size

Created on 7 Jul 2020  路  10Comments  路  Source: microsoft/terminal

Description of the new feature/enhancement

Create an option "disable window resizing" or "fixed minimum window size" in global settings.

Proposed technical implementation details (optional)

Window Resizing Settings

Property name: enableWindowResizing

Necessity: Optional

Accepts: true, false

Default value: true
_________________________ OR __________________________________

Fixed Minimum Window Size

Property name: minimumWindowSize

Necessity: Optional

Accepts: Dimensions - rows,columns

Default value: 30,120

Area-Settings Easy Starter Help Wanted Issue-Task Priority-3 Product-Terminal

Most helpful comment

There's already a minimum window size set you can't go any smaller with though it could use a bit more work (I can make it so everything but the tab is visible, there should at least be one visible line you can type into). I would be in favor of allowing a setting to be added for this instead of removing the ability to resize and defaulting it to true, something that would break more users than your niche crowd consists of.

A fixed minimum window size would be great. It would be really helpful.

All 10 comments

... Why though? Since resizing is a user-initiated event, couldn't you just _not resize the window_?

... Why though? Since resizing is a user-initiated event, couldn't you just _not resize the window_?

For aesthetic and comercial reasons. If I create a console app and compose it with a background image, like my company logo, resizing the window, in this case making it smaller, will make the composition less interesting, since the backgroung image is static. For this reason it would be better if I could keep the user from doing that.

since the background image is static. For this reason it would be better if I could keep the user from doing that

I think the solution is make the background image dynamic instead. If I want to resize then I'm going to regardless if a background image is static. Attempting to force your users to do things your way is how you lose users. It's all about choice and Windows Terminal is great about doing that and is adding even more for that.

since the background image is static. For this reason it would be better if I could keep the user from doing that

I think the solution is make the background image dynamic instead. If I want to resize then I'm going to regardless if a background image is static. Attempting to force your users to do things your way is how you lose users. It's all about choice and Windows Terminal is great about doing that and is adding even more for that.

It would be nice to make the background image dynamic, but I think bitmap formats like png are not the best choice for this. If introducing an option to prevent resizing is such a big problem, an option for a fixed minimum size would do the job.

I'm proposing something based on my needs and maybe somebody else's needs. My users are from an IT niche and Windows Terminal is giving me the oportunity improve apps that we already have and create even better ones. But, a "disable window resizing" option or a "fixed minimum window size" option would really be helpful for what I pretend to do.

There's already a minimum window size set you can't go any smaller with though it could use a bit more work (I can make it so everything but the tab is visible, there should at least be one visible line you can type into). I would be in favor of allowing a setting to be added for this instead of removing the ability to resize and defaulting it to true, something that would break more users than your niche crowd consists of.

There's already a minimum window size set you can't go any smaller with though it could use a bit more work (I can make it so everything but the tab is visible, there should at least be one visible line you can type into). I would be in favor of allowing a setting to be added for this instead of removing the ability to resize and defaulting it to true, something that would break more users than your niche crowd consists of.

A fixed minimum window size would be great. It would be really helpful.

Some mice have issues triggering excessive events after a scroll. Windows resizing gets triggered without the user meaning to. I prefer terminal resizing to be bound to keyboard shortcuts such as those used in browsers, and the ability to disable mouse-initiated resizing.

Some mice have issues triggering excessive events after a scroll. Windows resizing gets triggered without the user meaning to. I prefer terminal resizing to be bound to keyboard shortcuts such as those used in browsers, and the ability to disable mouse-initiated resizing.

I've opened an issue-feature about that too, but the developers/contributors are aware and already working on it.

I'm okay with letting the user configure the minimum window size, so I'll re-purpose this thread accordingly. Thanks for the discussion all!

To add:
The minmum window size is currently set in pixels. If we do add a setting for this, should it be in "cols,rows" format, or "width in pixels, height in pixels" format? I'm leaning towards the pixels one personally.

We'll also need to make sure that it's optional, and it can't be set to smaller than what the value we're currently using is.

@zadjii-msft - once we merge https://github.com/microsoft/terminal/pull/8066 this might be quite straightforward. WDYT?

Was this page helpful?
0 / 5 - 0 ratings