terminal icon indicating copy to clipboard operation
terminal copied to clipboard

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

Open kj87au opened this issue 1 year ago • 3 comments

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

kj87au avatar Aug 26 '24 11:08 kj87au

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 avatar Aug 26 '24 13:08 zadjii-msft

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 avatar Aug 29 '24 11:08 kj87au

This happens to me also

tolgaulas avatar Apr 16 '25 12:04 tolgaulas

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 avatar May 23 '25 08:05 schlich

had this as well

Image

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

mbolli avatar Jul 08 '25 11:07 mbolli