microsoft/Terminal

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

Open

#10.466 aberto em 20 de jun. de 2021

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)C++ (3.212 forks)batch import
Area-RenderingHelp WantedIssue-TaskProduct-Terminal

Métricas do repositório

Stars
 (35.764 stars)
Métricas de merge de PR
 (Mesclagem média 27d 19h) (24 fundiu PRs em 30d)

Description

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.

Guia do colaborador