[PR #1152] [MERGED] Accounting padding when calculating the initial window size #24506

Open
opened 2026-01-31 09:03:42 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1152
Author: @Summon528
Created: 6/5/2019
Status: Merged
Merged: 6/12/2019
Merged by: @DHowett-MSFT

Base: masterHead: fix-initial-cols


📝 Commits (7)

📊 Changes

2 files changed (+7 additions, -4 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+6 -3)
📝 src/cascadia/TerminalControl/TermControl.h (+1 -1)

📄 Description

Summary of the Pull Request

Accounting padding when calculating the initial window size

References

PR Checklist

  • Closes How to interrupt program without Ctrl-C? (#1143)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Set "padding": "100" and observe the window becomes larger
Set "padding": "100, 200" and observe the window becomes larger
Set "padding": "50, 100, 150, 200" and observe the window becomes larger


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/1152 **Author:** [@Summon528](https://github.com/Summon528) **Created:** 6/5/2019 **Status:** ✅ Merged **Merged:** 6/12/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `fix-initial-cols` --- ### 📝 Commits (7) - [`ff0082e`](https://github.com/microsoft/terminal/commit/ff0082ec9c8693601bea6e20e8879bb213026aa3) Working - [`99c284d`](https://github.com/microsoft/terminal/commit/99c284d196e55acf5e993622af1786b6d0b1d855) bye warning & use vector - [`f867e1e`](https://github.com/microsoft/terminal/commit/f867e1e1b3b6c0e895d0ef53ea6cf44b64a437f5) Doc comment - [`c331a3e`](https://github.com/microsoft/terminal/commit/c331a3ec6d345f08bbf542d0c7551f1bbaff95b7) why doesn't it warn me - [`60c1f9d`](https://github.com/microsoft/terminal/commit/60c1f9d36ad7415a0ecf68efab713a28696b9e50) PR feedback - [`930f942`](https://github.com/microsoft/terminal/commit/930f942605589f3d9d7b4f5857ec7cb81f3a85d3) Revert _ParseThicknessFromPadding - [`df5f9f5`](https://github.com/microsoft/terminal/commit/df5f9f541d6edd9f656f343ebf336dfaf8875e33) Update src/cascadia/TerminalControl/TermControl.cpp ### 📊 Changes **2 files changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+6 -3) 📝 `src/cascadia/TerminalControl/TermControl.h` (+1 -1) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Accounting padding when calculating the initial window size <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #1143 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Set `"padding": "100"` and observe the window becomes larger Set `"padding": "100, 200"` and observe the window becomes larger Set `"padding": "50, 100, 150, 200"` and observe the window becomes larger --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:03:42 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24506