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

Windows ConPTY does not allow mouse interactions in the integrated terminal #160917

Closed
MarvinJWendt opened this issue Sep 14, 2022 · 4 comments
Closed
Assignees
Labels
*out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@MarvinJWendt
Copy link
Contributor

MarvinJWendt commented Sep 14, 2022

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
Version: 1.71.1 (user setup)
Commit: e7f30e38c5a4efafeec8ad52861eb772a9ee4dfb
  • OS Version:
OS: Microsoft Windows 11 Home
Version: 10.0.22000 Build 22000

Steps to Reproduce:

  1. Open any CLI tool that supports mouse events in the VS Code integrated terminal.
  2. Try interacting with the terminal (=> not working)
  3. Disable ConPTY
  4. Close and reopen the terminal session
  5. Try to interact with the CLI again (=> working)

Hello, I am aware that this issue was posted before, but it was closed years ago, and it still persists.

VS Code uses ConPTY by default in the integrated terminal. ConPTY does not allow mouse interactions, yet. This means, that you have to disable terminal.integrated.windowsEnableConpty, to be able to interact with CLIs via the mouse.

But if I am not mistaken, the Windows Terminal ships its own ConPTY? According to this comment, Windows Terminal supports mouse interactions (with ConPTY) since v1.9: microsoft/terminal#376 (comment)

Would it be possible to integrate that into VS Code as well?

@Tyriar
Copy link
Member

Tyriar commented Sep 14, 2022

Mouse support should light up when Windows gets that version of ConPTY which can take a year+. @zadjii-msft do you know if mouse support is included in Windows 11 build 10.0.22000?

@zadjii-msft
Copy link
Member

+@DHowett as an fyi since I'll be on leave before I get to the root of this.

I'd reckon it should be in 22000. I forget if there's something wacky we're doing to get mouse mode enabled by default (we might be)

@DHowett
Copy link
Member

DHowett commented Sep 16, 2022

Due to the timing of when 10.0.22000 went into feature freeze, mouse mode unfortunately did not make the cut. It should be available in 22621.

@Tyriar Tyriar added upstream Issue identified as 'upstream' component related (exists outside of VS Code) *out-of-scope Posted issue is not in scope of VS Code and removed *as-designed Described behavior is as designed labels Dec 6, 2022
@cristianadam
Copy link

cristianadam commented Jul 25, 2023

@DHowett I'm running now Windows 11 10.0.22621.1992 and the mouse input is still not working. Do you know the Windows 11 version that will get this feature?

Edit: It actually works, I was able to click on "10 Quit" in "Far Manager" in vscode via mouse and the exit dialog popped up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*out-of-scope Posted issue is not in scope of VS Code upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

6 participants