Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
skyline75489 opened this issue Apr 30, 2020 · 3 comments
Closed

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

skyline75489 opened this issue Apr 30, 2020 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@skyline75489
Copy link
Collaborator

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.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 30, 2020
@skyline75489
Copy link
Collaborator Author

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.

@zadjii-msft
Copy link
Member

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.

@ghost
Copy link

ghost commented 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 ghost closed this as completed Apr 30, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 30, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants