Weird behaviour when font size up and down in WSL #7838

Closed
opened 2026-01-31 01:13:53 +00:00 by claunia · 3 comments
Owner

Originally created by @skyline75489 on GitHub (Apr 30, 2020).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] 1909
Windows Terminal version (if applicable): From 0.10 to latest master

Any other software?

Steps to reproduce

I was playing around since we fixed #5479 recently. But I found that the content became weird and duplicate when I'm scaling font up & down.

Originaly there's only one prompt line. Scale the font to a very large one (I mean large enough to trigger line wraps) and down. Repeat.

Expected behavior

Well, anything less confusing would be good.

Actual behavior

After a couple of times, you got something like this:

图片

图片

I can only reproduce this in WSL. Distro does not seem to matter.

Originally created by @skyline75489 on GitHub (Apr 30, 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: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] 1909 Windows Terminal version (if applicable): From 0.10 to latest master Any other software? ``` # Steps to reproduce I was playing around since we fixed #5479 recently. But I found that the content became weird and duplicate when I'm scaling font up & down. Originaly there's only one prompt line. Scale the font to a very large one (I mean large enough to trigger line wraps) and down. Repeat. <!-- A description of how to trigger this bug. --> # Expected behavior Well, anything less confusing would be good. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior After a couple of times, you got something like this: ![图片](https://user-images.githubusercontent.com/4710575/80707071-f2140e80-8b1b-11ea-864a-5b31ec422be8.png) ![图片](https://user-images.githubusercontent.com/4710575/80707131-140d9100-8b1c-11ea-95d4-45401590fef4.png) <!-- What's actually happening? --> I can only reproduce this in WSL. Distro does not seem to matter.
claunia added the Resolution-Duplicate label 2026-01-31 01:13:53 +00:00
Author
Owner

@skyline75489 commented on GitHub (Apr 30, 2020):

I'm not really concerned about the issue itself. I mean, it would appear very few people would actually do this in real life. What concerns me is the underlying issue that may affects other things. And I don't really get it why Powershell & cmd are exempt from this behaviour.

@skyline75489 commented on GitHub (Apr 30, 2020): I'm not really concerned about the issue itself. I mean, it would appear very few people would actually do this in real life. What concerns me is the underlying issue that may affects other things. And I don't really get it why Powershell & cmd are exempt from this behaviour.
Author
Owner

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

So I'm thinking this is definitely a /dupe of #5450, and I'm thinking honestly that both of these are related to #3088

This seems less like it's something we're doing, but more an artifact of how bash handles reprinting it's prompt. Compare gnome-terminal with conhost:

image

As soon as the prompt wraps onto a third line, you bash seems to handle unwrapping particularly poorly.

@zadjii-msft commented on GitHub (Apr 30, 2020): So I'm thinking this is _definitely_ a /dupe of #5450, and I'm thinking honestly that both of these are related to #3088 This seems less like it's something we're doing, but more an artifact of how `bash` handles reprinting it's prompt. Compare `gnome-terminal` with `conhost`: ![image](https://user-images.githubusercontent.com/18356694/80713420-0672ef80-8ab9-11ea-8a09-9329a09502df.png) As soon as the prompt wraps onto a _third_ line, you `bash` seems to handle unwrapping particularly poorly.
Author
Owner

@ghost commented on GitHub (Apr 30, 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 30, 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#7838