Cannot copy text by painting after Node.js session in a new tab #5178

Open
opened 2026-01-31 00:06:47 +00:00 by claunia · 0 comments
Owner

Originally created by @oturpe on GitHub (Nov 26, 2019).

Originally assigned to: @carlos-zamora on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.476]
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

  1. Close Windows Terminal if it was already open
  2. Open Windows Terminal
  3. Open a new tab
  4. Execute the following minimal Node.js session:
    $ node
    > process.exit()
    $
    
  5. Try to paint some text on screen

Expected behavior

Text is painted and can be copied

Actual behavior

Nothing is painted

Further information

  1. This bug does not reproduce if the original tab is visited between opening the new tab and starting Node.
  2. I have also reproduced this with Python repl instead of Node.
  3. The Node.js session does not need to be interactive, running a script with node <filename> can also cause the problem.
  4. I can easily reproduce this bug anytime I wish, but it does not happen every time I try. I have not been able to discern if it depends on some hidden factor, or if I do things slightly differently.
  5. For what it is worth, the usual circumstances where I run into this include PowerShell (Core) 6.2.2 as the default tab and Ubuntu on WSL as the second tab. However I have seen this both when the second tab is the default shell, or Windows PowerShell.

Even though the conditions are quite specific, I actually run into this quite often when I need to run a single command under WSL and start Windows Terminal just for that.

The easy workaround is to switch tabs back and forth, which re-enables painting text.

Originally created by @oturpe on GitHub (Nov 26, 2019). Originally assigned to: @carlos-zamora on GitHub. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.476] Windows Terminal version (if applicable): 0.6.2951.0 ``` # Steps to reproduce 1. Close Windows Terminal if it was already open 2. Open Windows Terminal 3. Open a new tab 4. Execute the following minimal Node.js session: ``` $ node > process.exit() $ ``` 5. Try to paint some text on screen # Expected behavior Text is painted and can be copied # Actual behavior Nothing is painted # Further information 1. This bug does not reproduce if the original tab is visited between opening the new tab and starting Node. 2. I have also reproduced this with Python repl instead of Node. 2. The Node.js session does not need to be interactive, running a script with `node <filename>` can also cause the problem. 3. I can easily reproduce this bug anytime I wish, but it does not happen every time I try. I have not been able to discern if it depends on some hidden factor, or if I do things slightly differently. 4. For what it is worth, the usual circumstances where I run into this include PowerShell (Core) 6.2.2 as the default tab and Ubuntu on WSL as the second tab. However I have seen this both when the second tab is the default shell, or Windows PowerShell. Even though the conditions are quite specific, I actually run into this quite often when I need to run a single command under WSL and start Windows Terminal just for that. The easy workaround is to switch tabs back and forth, which re-enables painting text.
claunia added the Resolution-Duplicate label 2026-01-31 00:06:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5178