microsoft/Terminal

Normalize terminal padding in maximized or fullscreened windows

Open

#6,495 建立於 2020年6月13日

在 GitHub 查看
 (2 留言) (4 反應) (0 負責人)C++ (3,212 fork)batch import
Area-TerminalControlHelp WantedIssue-TaskProduct-Terminal

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Description of the new feature/enhancement

When the window is in an un-maximized state, Terminal snaps window resizes to the closest character, which makes sense -- this way, the terminal padding on all 4 edges is what it's set to in settings.json.
However, when the window is maximized or in fullscreen, Terminal's size depends on the size of the monitor, which means the padding is often mismatched. When this happens, Terminal preserves the top and left padding. This makes some graphical CLI programs look a bit odd:

A full-screened Terminal with weechat running with equal padding on the left and top sides, but greater than usual padding on the right and especially the bottom

It might be nice to have an option to make the left-right and top-bottom paddings equal in this situation, so that the terminal content is centred within the window rather than at the top left.

Proposed technical implementation details (optional)

Of course, the padding setting should still be used as a minimum padding, and I think it makes sense to have this as a per-profile option (it makes more sense when you're running full-screen CLI programs like weechat, than if you're just running a shell.)

貢獻者指南