Windows terminal akward border #19425

Closed
opened 2026-01-31 06:42:55 +00:00 by claunia · 6 comments
Owner

Originally created by @rjawaji1 on GitHub (Feb 21, 2023).

Windows Terminal version

No response

Windows build number

Microsoft Windows [Version 10.0.22621.1265]

Other Software

No response

Steps to reproduce

None, i think its a default problem?

Expected Behavior

Even padding along all edges

Actual Behavior

The padding is uneven across the top and bottom edges which makes it look really ugly.
image

Originally created by @rjawaji1 on GitHub (Feb 21, 2023). ### Windows Terminal version _No response_ ### Windows build number Microsoft Windows [Version 10.0.22621.1265] ### Other Software _No response_ ### Steps to reproduce None, i think its a default problem? ### Expected Behavior Even padding along all edges ### Actual Behavior The padding is uneven across the top and bottom edges which makes it look really ugly. ![image](https://user-images.githubusercontent.com/62601155/220267908-5c407af7-428b-425f-aaf7-51f9c2720b53.png)
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:42:55 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 21, 2023):

That's the space that's reserved for the scroll bar. That's why the right side seems to have more "padding" than the other sides. Neovim might be using the alt buffer, and not need the scrollbar, but it's still there.

The crux of the issue here is that your neovim scheme uses a different color than the "default background" color, which means you can see the padding in the default BG color around the outside of the actual text viewport. In the past I believe we've called this by design. That's what neovim asked for, so we gave it to them.

Now, one could maybe do some sort of dumb heuristc to try and fix this. Maybe something with the alt buffer, and recieving a clear screen with a non-default BG color. Maybe something to look in to...

@zadjii-msft commented on GitHub (Feb 21, 2023): That's the space that's reserved for the scroll bar. That's why the right side seems to have more "padding" than the other sides. Neovim might be using the alt buffer, and not need the scrollbar, but it's still there. The crux of the issue here is that your neovim scheme uses a different color than the "default background" color, which means you can see the padding in the default BG color around the outside of the actual text viewport. In the past I believe we've called this by design. That's what neovim asked for, so we gave it to them. Now, one could maybe do some sort of dumb heuristc to try and fix this. Maybe something with the alt buffer, and recieving a clear screen with a non-default BG color. Maybe something to look in to...
Author
Owner

@lhecker commented on GitHub (Feb 21, 2023):

I've been considering to just extend the closest background pixel to the edge of the viewport like so:
D3D11_TEXTURE_ADDRESS_CLAMP

(D3D11_TEXTURE_ADDRESS_CLAMP and D2D1_EXTEND_MODE_CLAMP respectively.)

@lhecker commented on GitHub (Feb 21, 2023): I've been considering to just extend the closest background pixel to the edge of the viewport like so: ![D3D11_TEXTURE_ADDRESS_CLAMP](https://learn.microsoft.com/en-us/windows/win32/direct3d9/images/clamp.png) (`D3D11_TEXTURE_ADDRESS_CLAMP` and `D2D1_EXTEND_MODE_CLAMP` respectively.)
Author
Owner

@carlos-zamora commented on GitHub (Feb 21, 2023):

Hi @redfer13. Thanks for the feedback. You make a good point. We're actually going to consolidate this with #10422 to track it better.

/dup #10422

@carlos-zamora commented on GitHub (Feb 21, 2023): Hi @redfer13. Thanks for the feedback. You make a good point. We're actually going to consolidate this with #10422 to track it better. /dup #10422
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 21, 2023):

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!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 21, 2023): 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!
Author
Owner

@tom-huntington commented on GitHub (Dec 3, 2024):

I've been considering to just extend the closest background pixel to the edge of the viewport

@lhecker Do you have some work around? The purple ubuntu boarder looks really ugly

Image

@tom-huntington commented on GitHub (Dec 3, 2024): > I've been considering to just extend the closest background pixel to the edge of the viewport @lhecker Do you have some work around? The purple ubuntu boarder looks really ugly ![Image](https://github.com/user-attachments/assets/598be5dc-c953-4bbf-9794-abc85d4e08aa)
Author
Owner

@lhecker commented on GitHub (Dec 3, 2024):

Ubuntu installs a so called "fragment" to override the default color scheme for its Windows Terminal profile. To change it

  • Open the settings
  • Click on the Ubuntu profile
  • Click on "Appearance"
  • Change the color scheme from "Ubuntu-ColorScheme" to whatever you prefer ("Campbell" is the default).
@lhecker commented on GitHub (Dec 3, 2024): Ubuntu installs a so called "fragment" to override the default color scheme for its Windows Terminal profile. To change it * Open the settings * Click on the Ubuntu profile * Click on "Appearance" * Change the color scheme from "Ubuntu-ColorScheme" to whatever you prefer ("Campbell" is the default).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19425