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

After CTRL+Scroll to zoom in and out a ton, the text gets garbled #1229

Closed
zadjii-msft opened this issue Jun 12, 2019 · 12 comments
Closed

After CTRL+Scroll to zoom in and out a ton, the text gets garbled #1229

zadjii-msft opened this issue Jun 12, 2019 · 12 comments
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@zadjii-msft
Copy link
Member

From MSFT:21430356

After CTRL+Scroll to zoom in and out a ton, the text gets garbled

I scrolled with CTRL+Scroll to make it really small and really big and went back and forth. Then, I can scroll up and get garbled text that only extends a few characters but are truncated rather than wrapping.

@zadjii-msft zadjii-msft added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Product-Terminal The new Windows Terminal. labels Jun 12, 2019
@zadjii-msft zadjii-msft added this to the Terminal v1.0 milestone Jun 12, 2019
@ghost ghost added the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 12, 2019
@zadjii-msft zadjii-msft removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 12, 2019
@dash-mode
Copy link

Has anyone been working on this?
When I begin a new tab and then I change the size of the text using ctrl+scroll, I see some garbage text when I scroll up.

@zadjii-msft
Copy link
Member Author

Nope, feel free to take a stab at it if you'd like. My guess is that we're not "reflowing" text that's outside of the viewport when we resize the buffer, we're merely truncating it to the new size of the buffer. There's almost certainly code in conhost's SCREEN_INFORMATION class that could help with this, though it'd have to be ported down a layer, to the TextBuffer class.

@dash-mode
Copy link

Alright, thanks for the suggestion. I will take a look at it.

@dash-mode
Copy link

Annotation 2019-06-23 150611

window::verticalScroll is called in this function ^

Annotation 2019-06-23 151149

Here is the definition of window::verticalScroll.

I think this is where the issue might be. But I am a little stuck here. Can someone help me out here?

@Shorotshishir
Copy link

This is the max I could get to zoom and render. I have a 1080p display this is too much!
image

@DHowett-MSFT
Copy link
Contributor

I’m sorry, are you complaining that you made your font too big and now your font is too big?

@Shorotshishir
Copy link

@DHowett I am not complaining about my font being too big :D but saying it is not stopping! I do believe it should have a max limit, where scrolling won't have any effect. I could see the cursor growing and growing.

@zadjii-msft
Copy link
Member Author

@dash-mode The function you're actually looking for is SCREEN_INFORMATION::ResizeWithReflow in screeninfo.cpp

@WSLUser
Copy link
Contributor

WSLUser commented Jul 2, 2019

I do believe it should have a max limit, where scrolling won't have any effect. I could see the cursor growing and growing.

I agree though probably not for exactly the same reason. I could see a potential crash occurring either with the tab, the Terminal, or potentially Windows itself (though I find that highly unlikely) or a crash in the GPU that causes a reset. It raises an availability concern and potentially other security concerns. Setting a max limit would be best but I think if it can fit on the screen, it should be permitted. I would execute some query logic based on device type to determine the visual range available for the screen.

@KoalaBear84
Copy link

Luckily I have found an issue representing my problems and then seeing it is already known for a half year. Aww.

Anyway, here is a visual I created to demonstrate. It is good to have anyway.

ezgif-5-88b15fa6f3d7

@zadjii-msft
Copy link
Member Author

Wait a hot second, this is actually the same bug as /dup #1465 and more broadly, #4200

@ghost
Copy link

ghost commented Jan 22, 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 Jan 22, 2020
@ghost ghost added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Jan 22, 2020
@zadjii-msft zadjii-msft removed this from the Terminal v1.0 milestone Jan 22, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. 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

6 participants