Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kj87au opened this issue Aug 26, 2024 · 2 comments
Open
Assignees
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.

Comments

@kj87au
Copy link

kj87au commented Aug 26, 2024

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 kj87au added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 26, 2024
@microsoft microsoft deleted a comment Aug 26, 2024
@zadjii-msft
Copy link
Member

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 zadjii-msft self-assigned this Aug 26, 2024
@zadjii-msft zadjii-msft added Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Product-Terminal The new Windows Terminal. labels Aug 26, 2024
@zadjii-msft zadjii-msft added this to the Terminal v1.23 milestone Aug 26, 2024
@zadjii-msft zadjii-msft removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Aug 28, 2024
@kj87au
Copy link
Author

kj87au commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
Status: To Cherry Pick
Development

No branches or pull requests

4 participants
@zadjii-msft @kj87au and others