Always empty last line when using padding #7526

Closed
opened 2026-01-31 01:06:08 +00:00 by claunia · 2 comments
Owner

Originally created by @vasily-codefresh on GitHub (Apr 21, 2020).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.10.8710

Any other software? no

Steps to reproduce

  1. I have a 1920x1080 screen with display scaling set to 150%
  2. I just install and launch the Windows Terminal

Expected behavior

A good-looking and functional terminal =)

Actual behavior

  1. My last line in the terminal is always empty and doesn't allow to display any text in it, see screenshot
  2. This reproduces with default settings; initialRows, initialCols, initialPosition and snapToGridOnResize have no effect, the empty line is always there
  3. This reproduces with any host: PS7, PS5, cmd
  4. padding set to 8, 0, 8, 0 eliminates this problem, with 8, 1, 8, 1 it's still there

I think it's the bug in rendering as using padding (default or non-zero) causes terminal to delete one line and it's not possible to get around this (as initialRows is an integer).

In fact, it appears like padding doesn't work correctly as it effectively ignores initialRows and maybe initialCols. What do you expect when setting initialRows to 25, initialCols to 80 and padding to 2,2,2,2? I'd expect that I'll have a 80x25 screen with 2px padding on each side.

Originally created by @vasily-codefresh on GitHub (Apr 21, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.10.8710 Any other software? no ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. I have a 1920x1080 screen with display scaling set to 150% 2. I just install and launch the Windows Terminal # Expected behavior A good-looking and functional terminal =) <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior 1. My last line in the terminal is always empty and doesn't allow to display any text in it, see [screenshot](https://1drv.ms/u/s!AqSdRn_IUsGpgcU2EGeBqx981TYOxA?e=SLnV3U) 2. This reproduces with default settings; `initialRows`, `initialCols`, `initialPosition` and `snapToGridOnResize` have no effect, the empty line is always there 3. This reproduces with any host: PS7, PS5, cmd 4. `padding` set to `8, 0, 8, 0` eliminates this problem, with `8, 1, 8, 1` it's still there I think it's the bug in rendering as using `padding` (default or non-zero) causes terminal to delete one line and it's not possible to get around this (as `initialRows` is an integer). In fact, it appears like `padding` doesn't work correctly as it effectively ignores `initialRows` and maybe `initialCols`. What do you expect when setting `initialRows` to `25`, `initialCols` to `80` and `padding` to `2,2,2,2`? I'd expect that I'll have a 80x25 screen with 2px padding on each side. <!-- What's actually happening? -->
claunia added the Resolution-Duplicate label 2026-01-31 01:06:08 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 21, 2020):

You might be interested in #2061, or the related PRs #4825 and #5091. This will be fixed in 0.11 ☺️

/dup #2061

@zadjii-msft commented on GitHub (Apr 21, 2020): You might be interested in #2061, or the related PRs #4825 and #5091. This will be fixed in 0.11 ☺️ /dup #2061
Author
Owner

@ghost commented on GitHub (Apr 21, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 21, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7526