Skip to content
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

Add optional margins to Windows console to improve readability. #76

Closed
bitcrazed opened this issue Feb 16, 2018 · 7 comments
Closed

Add optional margins to Windows console to improve readability. #76

bitcrazed opened this issue Feb 16, 2018 · 7 comments
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Milestone

Comments

@bitcrazed
Copy link
Contributor

From @PhMajerus on October 22, 2017 21:28

This is a very simple suggestion, and should be easy to implement while providing great benefits.

Text flush with windows borders are not great for readability (I remember the Microsoft Reader or Typography team ran experiments on this years ago, deciding to include margins to ebooks on Pocket PC screens), and most CUI apps do not spare characters around their display to provide a margin.

So how about adding configurable margins in conhost?
This would be part of the layout options, defining a number of pixels width (left & right) and height (top & bottom). Conhost would then extend the window client area by these margins, using the current console background color but centering the buffer display within it.

This small modification would have no impact unless a user sets margins other than 0, and would greatly improve readability in the console.
For greater customization, you could even allow different margins for main and alternate buffer modes, making the interactive/buffer-log mode different from the one of CUI-apps that control their display precisely.

After all, if the goal is to make Windows the best workstation OS for cross-platform development, we shouldn't settle for just usable, we should aim for comfort and differentiate from the others in that area.

conhost margins

Copied from original issue: microsoft/WSL#2589

@bitcrazed bitcrazed added backlog Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Feb 16, 2018
@bitcrazed
Copy link
Contributor Author

From @zadjii-msft on October 23, 2017 16:39

Already on the backlog :)

@bitcrazed
Copy link
Contributor Author

From @Oeffner on October 26, 2017 16:15

Better still would be to reinstate the option of setting window border thickness to something else than 0 pixel width from the control panel. This would have a similar effect as adding a marging within the window. This was possible in Windows 7 and earlier. With the current zero border width it takes a lot of time to correctly position the mouse on the border when attempting to resize a windows. This generally reduces productivity of the desktop.

@zadjii-msft zadjii-msft added this to the Backlog milestone Mar 5, 2018
@zadjii-msft zadjii-msft added Product-Conhost For issues in the Console codebase and removed console labels Mar 5, 2018
@miniksa miniksa added Area-User Interface Issues pertaining to the user interface of the Console or Terminal and removed Backlog Product-Conhost For issues in the Console codebase labels May 14, 2019
@miniksa
Copy link
Member

miniksa commented May 14, 2019

Windows Terminal has this. Resolving.

@miniksa miniksa closed this as completed May 14, 2019
@mdtauk
Copy link

mdtauk commented May 14, 2019

It's a shame there isn't a distinction between drawing modes and text modes, or else you could have included line height settings too

@zadjii-msft
Copy link
Member

Who's to say we won't ;)

@philpowers
Copy link

philpowers commented Sep 17, 2019

Windows Terminal has this. Resolving.

@miniksa Can you clarify? I don't see anything about Margin or Border settings. Please tell me where to find this if it's already implemented.

@zadjii-msft
Copy link
Member

Try the "padding" setting:

            "padding" : "20",

or

            "padding" : "2, 4, 8, 16",

See SettingsSchema.md for a list of available settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Projects
None yet
Development

No branches or pull requests

5 participants