Getting a large dump of "^[[D" to the terminal on click in WSL Ubuntu Dev #22161

Open
opened 2026-01-31 08:05:07 +00:00 by claunia · 5 comments
Owner

Originally created by @kj87au on GitHub (Aug 26, 2024).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.22.2371.0

Windows build number

10.0.22635.4076

Other Software

No response

Steps to reproduce

Running WSL2 C:\Windows\system32\wsl.exe -d Ubuntu.

Having "Automatically mark prompts on pressing Enter" enabled.

Have long running job. "find ." or "docker-compose up"

Clicking the terminal.

Expected Behavior

Nothing to be added.

Actual Behavior

Clicking the terminal causes a large dump to terminal.

If I turn "Automatically mark prompts on pressing Enter" off it goes away.

image

Originally created by @kj87au on GitHub (Aug 26, 2024). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.22.2371.0 ### Windows build number 10.0.22635.4076 ### Other Software _No response_ ### Steps to reproduce Running WSL2 C:\Windows\system32\wsl.exe -d Ubuntu. Having "Automatically mark prompts on pressing Enter" enabled. Have long running job. "find ." or "docker-compose up" Clicking the terminal. ### Expected Behavior Nothing to be added. ### Actual Behavior Clicking the terminal causes a large dump to terminal. If I turn "Automatically mark prompts on pressing Enter" off it goes away. ![image](https://github.com/user-attachments/assets/1ad2cc4d-a80e-415c-98af-4fa20636b3de)
claunia added the Issue-BugProduct-TerminalArea-TerminalControl labels 2026-01-31 08:05:07 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 26, 2024):

I'm guessing you've also got the experimental "Reposition the cursor with mouse clicks" enabled?

I think I've seen this with a git diff in the win32 git a few times too, though with slightly different symptoms. I suspect we're sending the arrow keys even though the terminal isn't in the commandline state anymore (now it's in the output).

@zadjii-msft commented on GitHub (Aug 26, 2024): I'm guessing you've also got the experimental "Reposition the cursor with mouse clicks" enabled? I think I've seen this with a `git diff` in the win32 git a few times too, though with slightly different symptoms. I suspect we're sending the arrow keys even though the terminal isn't in the commandline state anymore (now it's in the output).
Author
Owner

@kj87au commented on GitHub (Aug 29, 2024):

yep, It only seems to happen when both "Automatically mark prompts on pressing Enter" and "Reposition the cursor with mouse clicks" are enabled in WSL2 Ubuntu at the same time.

@kj87au commented on GitHub (Aug 29, 2024): yep, It only seems to happen when both "Automatically mark prompts on pressing Enter" and "Reposition the cursor with mouse clicks" are enabled in WSL2 Ubuntu at the same time.
Author
Owner

@tolgaulas commented on GitHub (Apr 16, 2025):

This happens to me also

@tolgaulas commented on GitHub (Apr 16, 2025): This happens to me also
Author
Owner

@schlich commented on GitHub (May 23, 2025):

I'm guessing you've also got the experimental "Reposition the cursor with mouse clicks" enabled?

I think I've seen this with a git diff in the win32 git a few times too, though with slightly different symptoms. I suspect we're sending the arrow keys even though the terminal isn't in the commandline state anymore (now it's in the output).

what is this setting? i dont think i've enabled this and i don't see it in the settings, if it's still an option as of today...

(also running into this issue)

@schlich commented on GitHub (May 23, 2025): > I'm guessing you've also got the experimental "Reposition the cursor with mouse clicks" enabled? > > I think I've seen this with a `git diff` in the win32 git a few times too, though with slightly different symptoms. I suspect we're sending the arrow keys even though the terminal isn't in the commandline state anymore (now it's in the output). what is this setting? i dont think i've enabled this and i don't see it in the settings, if it's still an option as of today... (also running into this issue)
Author
Owner

@mbolli commented on GitHub (Jul 8, 2025):

had this as well

Image

however I now enabled focusFollowMouse, and it seems like it's fixed (fingers crossed)

@mbolli commented on GitHub (Jul 8, 2025): had this as well <img width="1409" height="830" alt="Image" src="https://github.com/user-attachments/assets/1e8cbeb9-12ba-4385-9dd8-ebbf6f7f5ccb" /> however I now **enabled** `focusFollowMouse`, and it seems like it's fixed (fingers crossed)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22161