Terminal unresponsive to keystrokes when outputting large amount of text #10981

Closed
opened 2026-01-31 02:35:21 +00:00 by claunia · 4 comments
Owner

Originally created by @cshei on GitHub (Oct 12, 2020).

Environment

Windows build number: 10.0.19042.541
Windows Terminal version (if applicable): 1.4.2652.0 (Preview)

Any other software?  SSH from Windows or WSL

Steps to reproduce

  • SSH to another machine
  • run 'yes' command
  • Press CTRL-C or CTRL-Z

Expected behavior

Terminal output stops shortly after keypress.

Actual behavior

Terminal output continues for an extended period of time (10-30+ seconds). It's worse if you open WSL2 and SSH from there (I just measured it continuing even after 30 seconds and had to close the window because CTRL-C was ineffective), but even launching SSH from PowerShell, it took 9 seconds for the output to stop.

In any Linux terminal, or even the SSH Extension for Chrome, CTRL-C takes less than a second to stop in these cases. I've noticed this behavior since the initial preview releases of Windows Terminal, and it makes using Windows Terminal difficult because if I'm running "emerge" in Gentoo (either in WSL2 or remotely over SSH), the massive amount of compiler commands that get printed cause Windows Terminal to frequently become unresponsive, making it take a really long time to switch TMUX windows away from the emerge or disconnect from the TMUX session.

Running VIM over SSH or mosh also feels sluggish compared to other SSH clients, and when running VIM remotely over mosh in WSL2, I can see the window redrawing when I scroll down with CTRL-F. It shouldn't be an issue of slow hardware, since I see this on both my X1 Carbon gen 7 laptop and my desktop with an i7-8700K and NVIDIA Titan X GPU.

Other than this one issue, Windows Terminal is an awesome piece of software, and I'd definitely use it as my preferred SSH client host if this could be fixed! I'm currently using the SSH and Mosh extensions for Chrome because they do not suffer from this issue.

Originally created by @cshei on GitHub (Oct 12, 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: 10.0.19042.541 Windows Terminal version (if applicable): 1.4.2652.0 (Preview) Any other software? SSH from Windows or WSL ``` # Steps to reproduce * SSH to another machine * run 'yes' command * Press CTRL-C or CTRL-Z # Expected behavior Terminal output stops shortly after keypress. # Actual behavior Terminal output continues for an extended period of time (10-30+ seconds). It's worse if you open WSL2 and SSH from there (I just measured it continuing even after 30 seconds and had to close the window because CTRL-C was ineffective), but even launching SSH from PowerShell, it took 9 seconds for the output to stop. In any Linux terminal, or even the SSH Extension for Chrome, CTRL-C takes less than a second to stop in these cases. I've noticed this behavior since the initial preview releases of Windows Terminal, and it makes using Windows Terminal difficult because if I'm running "emerge" in Gentoo (either in WSL2 or remotely over SSH), the massive amount of compiler commands that get printed cause Windows Terminal to frequently become unresponsive, making it take a really long time to switch TMUX windows away from the emerge or disconnect from the TMUX session. Running VIM over SSH or mosh also feels sluggish compared to other SSH clients, and when running VIM remotely over mosh in WSL2, I can see the window redrawing when I scroll down with CTRL-F. It shouldn't be an issue of slow hardware, since I see this on both my X1 Carbon gen 7 laptop and my desktop with an i7-8700K and NVIDIA Titan X GPU. Other than this one issue, Windows Terminal is an awesome piece of software, and I'd definitely use it as my preferred SSH client host if this could be fixed! I'm currently using the SSH and Mosh extensions for Chrome because they do not suffer from this issue. <!-- What's actually happening? -->
claunia added the Resolution-Duplicate label 2026-01-31 02:35:21 +00:00
Author
Owner

@skyline75489 commented on GitHub (Oct 12, 2020):

I think #198 is the first issue that described the similar issue.

@skyline75489 commented on GitHub (Oct 12, 2020): I think #198 is the first issue that described the similar issue.
Author
Owner

@jdebp commented on GitHub (Oct 13, 2020):

It is ironic that you mention Mosh, because one of the selling points of Mosh has always been that this is a problem in Linux. Specifically, it's a problem when one has SSH or some other remote terminal mechanism in the mix. As such, it is better to reproduce this issue without any involvement of SSH, which only serves to obscure things. But #198 as mentioned already deals in that.

@jdebp commented on GitHub (Oct 13, 2020): It is ironic that you mention Mosh, because one of the selling points of Mosh has always been that this _is_ a problem in Linux. Specifically, it's a problem when one has SSH or some other remote terminal mechanism in the mix. As such, it is better to reproduce this issue _without_ any involvement of SSH, which only serves to obscure things. But #198 as mentioned already deals in that.
Author
Owner

@DHowett commented on GitHub (Oct 16, 2020):

Yep -- there's a couple known issues floating around for this. The one that's had the most research put in, specifically around ^C and SSH, is /dup #6258. Notes in comment https://github.com/microsoft/terminal/issues/6258#issuecomment-649762617.

@DHowett commented on GitHub (Oct 16, 2020): Yep -- there's a couple known issues floating around for this. The one that's had the most research put in, specifically around ^C and SSH, is /dup #6258. Notes in comment https://github.com/microsoft/terminal/issues/6258#issuecomment-649762617.
Author
Owner

@ghost commented on GitHub (Oct 16, 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 (Oct 16, 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#10981