microsoft/Terminal

Resize window to maintain width (in chars) and height (in columns) when using ctrl-+ or ctrl--

Open

#10.466 geöffnet am 20. Juni 2021

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (3.212 Forks)batch import
Area-RenderingHelp WantedIssue-TaskProduct-Terminal

Repository-Metriken

Stars
 (35.764 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 27T 19h) (24 gemergte PRs in 30 T)

Beschreibung

Description of the new feature/enhancement

The current reduces or increases font size when Ctrl-- or Ctrl-+ are pressed. However the window width and height in pixels stays the say. This leads to visual inconsistencies when using apps like vi on ubuntu. I'd like to propose that the window size changes to maintain the width in characters / line and and height in columns when the font size is changed. This proposed behavior is also the one coded in Ubuntu and MacOSX.

Proposed technical implementation details (optional)

If your default characters/line is 120 and the default lines is 40, and the font size is 12, when the Ctrl-+ button is pressed the font size increases to 14. What should happen then is that the Terminal window's width should change to one that holds 120 characters at Font Size 14. And it's height should change to one that holds 40 lines at size 14. So the Terminal window should resize to be slightly larger. Similarly when Ctrl-- is pressed, the Terminal window should resize to become smaller. This is the default in other Unix platforms.

Contributor Guide