VT/xterm mouse reporting not working at all outside of WSL #20489

Open
opened 2026-01-31 07:15:16 +00:00 by claunia · 0 comments
Owner

Originally created by @jhmaster2000 on GitHub (Sep 17, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

Microsoft Windows [Version 10.0.19045.3448]

Other Software

PowerShell 7.4.0-preview.5
WSL version: 1.2.5.0

Steps to reproduce

To reproduce the expected behavior inside WSL: echo -e '\E[?1006h' + echo -e '\E[?1003h'

To reproduce the faulty behavior outside WSL: Write-Output "$([char]27)[?1006h" + Write-Output "$([char]27)[?1003h"

Extra info

According to https://github.com/microsoft/terminal/issues/545#issuecomment-509623410, #14958, this article and lots of other sources everything seems to indicate this is supposed to be supported, even outside of WSL according to the last article.

I've already found references of some comments saying "QuickEdit" mode might interfere with VT mouse capture, but I already turned that off and it still doesn't work. I've also already tried the command: Set-ItemProperty HKCU:\Console VirtualTerminalLevel -Type DWORD 1 but I'm pretty sure that was already set anyway.

I can also reproduce this outside of WT with pwsh.exe directly, and have looked through the PowerShell repository issues for this too, but found conflicting cases of people being redirected back and forth between that repository and this one for similar issues to mine (because apparently conhost issues are also tracked here?), so I'm not really sure which one this would fit better, feel free to move the issue to PowerShell if I guessed wrong.

Expected Behavior

Inside WSL, I obtain the following:

jhmaster@Ubuntu:~$ echo -e '\E[?1006h'

jhmaster@Ubuntu:~$ echo -e '\E[?1003h'

jhmaster@Ubuntu:~$ 35;66;17m35;65;17m35;64;17m35;64;16m35;63;16m35;62;16m35;61;16m...

from moving the mouse around after the two inputs. I expected the same feedback outside of WSL.

Actual Behavior

Outside of WSL:

PS C:\...> Write-Output "$([char]27)[?1006h"

PS C:\...> Write-Output "$([char]27)[?1003h"

PS C:\...>

No matter what is done with the mouse, move, drag, click, scroll, etc no feedback is given by the terminal.

Originally created by @jhmaster2000 on GitHub (Sep 17, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number Microsoft Windows [Version 10.0.19045.3448] ### Other Software PowerShell 7.4.0-preview.5 WSL version: 1.2.5.0 ### Steps to reproduce To reproduce the *expected* behavior inside WSL: `echo -e '\E[?1006h'` + `echo -e '\E[?1003h'` To reproduce the *faulty* behavior outside WSL: `Write-Output "$([char]27)[?1006h"` + `Write-Output "$([char]27)[?1003h"` ### Extra info According to https://github.com/microsoft/terminal/issues/545#issuecomment-509623410, #14958, [this article](https://www.zdnet.com/article/microsofts-windows-terminal-now-has-mouse-support-for-windows-subsystem-for-linux/) and lots of other sources everything seems to indicate this is supposed to be supported, even outside of WSL according to the last article. I've already found references of some comments saying "QuickEdit" mode might interfere with VT mouse capture, but I already turned that off and it still doesn't work. I've also already tried the command: `Set-ItemProperty HKCU:\Console VirtualTerminalLevel -Type DWORD 1` but I'm pretty sure that was already set anyway. I can also reproduce this outside of WT with pwsh.exe directly, and have looked through the PowerShell repository issues for this too, but found conflicting cases of people being redirected back and forth between that repository and this one for similar issues to mine (because apparently conhost issues are also tracked here?), so I'm not really sure which one this would fit better, feel free to move the issue to PowerShell if I guessed wrong. ### Expected Behavior Inside WSL, I obtain the following: ``` jhmaster@Ubuntu:~$ echo -e '\E[?1006h' jhmaster@Ubuntu:~$ echo -e '\E[?1003h' jhmaster@Ubuntu:~$ 35;66;17m35;65;17m35;64;17m35;64;16m35;63;16m35;62;16m35;61;16m... ``` from moving the mouse around after the two inputs. I expected the same feedback outside of WSL. ### Actual Behavior Outside of WSL: ``` PS C:\...> Write-Output "$([char]27)[?1006h" PS C:\...> Write-Output "$([char]27)[?1003h" PS C:\...> ``` No matter what is done with the mouse, move, drag, click, scroll, etc no feedback is given by the terminal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20489