Invisible command output in second monitor scaled differently #17125

Closed
opened 2026-01-31 05:32:50 +00:00 by claunia · 8 comments
Owner

Originally created by @servel333 on GitHub (Mar 30, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19044.1526

Other Software

No response

Steps to reproduce

  • Have a computer with two different scaling factors (for example, 4k laptop and old monitor)
    • My setup is a Microsoft Surface Book 3 with an old monitor connected through a hub and adapter
  • Enable WSL2
  • Install Ubuntu in WSL2
  • Open Windows Terminal
  • Move the terminal window to the lower-ratio monitor
  • try ls and other commands a few times
    • It's possible there must be colored output for this to reproduce. I often use git status with colors enabled and see this issue.

Expected Behavior

Command output (stdout) is visible and colored as expected.

Actual Behavior

Command output (stdout) is sometimes invisible.

Some additional notes

  • Selecting the invisible space with the mouse makes the text visible one line at a time
  • Moving the Windows Terminal window across the monitor boundary causes the text to become visible.
  • Changing the scaling factor on the external monitor to different than back will temporarily resolve this issue.
  • Resizing the Windows Terminal window (click and drag edge) will temporarily resolve this issue.
  • The issue returns if the Windows Terminal window is dragged across monitor boundaries and more output is generated.
  • See also This superuser.com Question for details and screenshots. Also not comments under the main question.
  • It's possible this is related to https://github.com/microsoft/terminal/issues/6210
Originally created by @servel333 on GitHub (Mar 30, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19044.1526 ### Other Software _No response_ ### Steps to reproduce - Have a computer with two different scaling factors (for example, 4k laptop and old monitor) - My setup is a Microsoft Surface Book 3 with an old monitor connected through a hub and adapter - Enable WSL2 - Install Ubuntu in WSL2 - Open Windows Terminal - Move the terminal window to the lower-ratio monitor - try `ls` and other commands a few times - It's possible there must be colored output for this to reproduce. I often use `git status` with colors enabled and see this issue. ### Expected Behavior Command output (stdout) is visible and colored as expected. ### Actual Behavior Command output (stdout) is sometimes invisible. ### Some additional notes - Selecting the invisible space with the mouse makes the text visible one line at a time - Moving the Windows Terminal window across the monitor boundary causes the text to become visible. - Changing the scaling factor on the external monitor to different than back will temporarily resolve this issue. - Resizing the Windows Terminal window (click and drag edge) will temporarily resolve this issue. - The issue returns if the Windows Terminal window is dragged across monitor boundaries and more output is generated. - See also [This superuser.com Question](https://superuser.com/questions/1713554/how-do-i-fix-command-output-in-terminal-is-invisible-on-external-monitor) for details and screenshots. Also not comments under the main question. - It's possible this is related to https://github.com/microsoft/terminal/issues/6210
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 05:32:50 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 30, 2022):

This might be better in 1.12 or 1.13, there was a weird scaling issue that was solved in the latest release. I'd doubt it, I think that had more to do with the resizing of the swapchainpanel itself (not invalidating), but worth a shot to check out.

#11317

Ah shiz, we didn't backport that one. ... Wait, did we? 2327e26

@zadjii-msft commented on GitHub (Mar 30, 2022): This might be better in 1.12 or 1.13, there was a weird scaling issue that was solved in the latest release. I'd doubt it, I think that had more to do with the resizing of the swapchainpanel itself (not invalidating), but worth a shot to check out. #11317 Ah shiz, we didn't backport that one. ... Wait, did we? 2327e26
Author
Owner

@servel333 commented on GitHub (Mar 30, 2022):

I'll see if I can grab a newer version and test, if one is publicly available.

It's definitely a weird bug. I wouldn't expect screen scaling to matter to the terminal.

@servel333 commented on GitHub (Mar 30, 2022): I'll see if I can grab a newer version and test, if one is publicly available. It's definitely a weird bug. I wouldn't expect screen scaling to matter to the terminal.
Author
Owner

@DHowett commented on GitHub (Mar 30, 2022):

The fix is unfortunately not yet out -- however, screen scaling matters to the Terminal because it's gotta get that good good grid of text into pixels somehow 😄

@DHowett commented on GitHub (Mar 30, 2022): The fix is unfortunately not yet out -- however, screen scaling matters to the Terminal because it's gotta get that good good grid of text into pixels _somehow_ :smile:
Author
Owner

@servel333 commented on GitHub (Mar 31, 2022):

I guess I assumed the operating system would handle application scaling?

Regardless, when the new version comes out, I will test it. I can't guarantee I will remember, so if you happen to, your welcome to @mention me here again.

@servel333 commented on GitHub (Mar 31, 2022): I guess I assumed the operating system would handle application scaling? Regardless, when the new version comes out, I will test it. I can't guarantee I will remember, so if you happen to, your welcome to @mention me here again.
Author
Owner

@zdavidsen commented on GitHub (Mar 31, 2022):

I've seen this (or something similar) a couple times recently as well. I can't reproduce it on demand, but every time I've noticed it has been when moving the terminal from my 4k/150% monitor to the 1080p/100% monitor.

I think it's different than the main issue in #11317 for several reasons:

  • 11317 only happened (for me at least) when moving from lower -> higher scaling. Command output disappearing is happening when moving the opposite direction (from higher -> lower scaling)
  • I've seen the output disappear in the middle of the terminal, with previous prompts displaying correctly both above and below the invisible output.

So apparently it's much easier to reproduce than I thought it was, I just don't normally scroll that much so it was easy to miss

InvisibleTerminalOutput

@zdavidsen commented on GitHub (Mar 31, 2022): I've seen this (or something similar) a couple times recently as well. ~I can't reproduce it on demand,~ but every time I've noticed it has been when moving the terminal from my 4k/150% monitor to the 1080p/100% monitor. I _think_ it's different than the main issue in #11317 for several reasons: - 11317 only happened (for me at least) when moving from lower -> higher scaling. Command output disappearing is happening when moving the opposite direction (from higher -> lower scaling) - I've seen the output disappear in the middle of the terminal, with previous prompts displaying correctly both above and below the invisible output. So apparently it's much easier to reproduce than I thought it was, I just don't normally scroll that much so it was easy to miss ![InvisibleTerminalOutput](https://user-images.githubusercontent.com/22267435/161124714-d72f6971-47b3-4655-9348-35a2b7b911b1.gif)
Author
Owner

@jessey-git commented on GitHub (Apr 1, 2022):

There is also #11214 that is still active that deals with moving between monitors at different scale (and when remoting into other machines with different resolutions)

@jessey-git commented on GitHub (Apr 1, 2022): There is also #11214 that is still active that deals with moving between monitors at different scale (and when remoting into other machines with different resolutions)
Author
Owner

@zadjii-msft commented on GitHub (Apr 8, 2022):

Yea, this does look just like #11214. Let's combine discussion in there.

/dup #11214

@zadjii-msft commented on GitHub (Apr 8, 2022): Yea, this does look just like #11214. Let's combine discussion in there. /dup #11214
Author
Owner

@ghost commented on GitHub (Apr 8, 2022):

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 8, 2022): 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#17125