Unable to remove bottom padding #8311

Closed
opened 2026-01-31 01:26:12 +00:00 by claunia · 3 comments
Owner

Originally created by @metaltermite on GitHub (May 20, 2020).

There is too much bottom padding, which is fine by default, but setting the bottom padding to 0 doesn't reduce the bottom padding to the bottom window margin as you'd expect, there's still a fair amount of padding.

Annotation 2020-05-20 021735

(Also Setting bottom padding to -1, doesn't reduce it; setting bottom padding to -2, reduces the padding but the bottom margin gets clipped.)

Environment

Windows build number:  10.0.18363.836
Windows Terminal version (if applicable): 1.0.1401.0

Any other software?

Steps to reproduce

Run any app, such as byobu, that draws a horizontal bar at the bottom of the terminal to gauge the size of the padding. Set bottom padding to 0, "padding": "0, 0, 0, 0"

Expected behavior

The bottom margin should be flush with the bottom of the terminal window

Actual behavior

There's still a fair amount of bottom padding.

Originally created by @metaltermite on GitHub (May 20, 2020). There is too much bottom padding, which is fine by default, but setting the bottom padding to 0 doesn't reduce the bottom padding to the bottom window margin as you'd expect, there's still a fair amount of padding. ![Annotation 2020-05-20 021735](https://user-images.githubusercontent.com/10378599/82412177-2efb6300-9a41-11ea-8960-3464742f4cb3.png) (Also Setting bottom padding to -1, doesn't reduce it; setting bottom padding to -2, reduces the padding but the bottom margin gets clipped.) # Environment ```none Windows build number: 10.0.18363.836 Windows Terminal version (if applicable): 1.0.1401.0 Any other software? ``` # Steps to reproduce Run any app, such as byobu, that draws a horizontal bar at the bottom of the terminal to gauge the size of the padding. Set bottom padding to 0, "padding": "0, 0, 0, 0" # Expected behavior The bottom margin should be flush with the bottom of the terminal window # Actual behavior There's still a fair amount of bottom padding.
Author
Owner

@zadjii-msft commented on GitHub (May 20, 2020):

This is unfortunately by-design. That space that's there on the bottom of the window isn't big enough for an entire row of text, so we just fill it with blank space. That's generally preferable to a row of characters that's only partially visible. Otherwise, the only solution would be to prevent the window from filling the entire screen while maximized, which I'm sure that no one really wants.

Thanks!

@zadjii-msft commented on GitHub (May 20, 2020): This is unfortunately by-design. That space that's there on the bottom of the window isn't big enough for an entire row of text, so we just fill it with blank space. That's generally preferable to a row of characters that's only partially visible. Otherwise, the only solution would be to prevent the window from filling the entire screen while maximized, which I'm sure that no one really wants. Thanks!
Author
Owner

@bkkm78 commented on GitHub (Jun 27, 2024):

The kitty terminal, for example, has a placement_strategy property that can be used to configure the placement of the terminal area with respect to the window (and therefore where the paddings are placed). When set to center, you get two smaller paddings at the top and the bottom instead of one fat padding at the bottom only, partially mitigating the problem. I guess many would also prefer the bottom strategy that moves the padding to the top, as programs like tmux and vim have status bars at the bottom by default.

@bkkm78 commented on GitHub (Jun 27, 2024): The kitty terminal, for example, has a [`placement_strategy`](https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.placement_strategy) property that can be used to configure the placement of the terminal area with respect to the window (and therefore where the paddings are placed). When set to `center`, you get two smaller paddings at the top and the bottom instead of one fat padding at the bottom only, partially mitigating the problem. I guess many would also prefer the `bottom` strategy that moves the padding to the top, as programs like tmux and vim have status bars at the bottom by default.
Author
Owner

@tiokr commented on GitHub (Dec 19, 2024):

Workaround: Set font size (and line height). Example: my resolution is 1080p. Let's say I run the terminal in full screen.
Examples that work: font size 13 and line height 1.2, or font size 12 and line height 1.5. As long as the lines (relatively) fit into 1080 pixels.
12pt = 16px, 1080 % (16 * 1.5) == 0

@tiokr commented on GitHub (Dec 19, 2024): Workaround: Set font size (and line height). Example: my resolution is 1080p. Let's say I run the terminal in full screen. Examples that work: font size 13 and line height 1.2, or font size 12 and line height 1.5. As long as the lines (relatively) fit into 1080 pixels. 12pt = 16px, `1080 % (16 * 1.5) == 0`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8311