[Bug] Windows Terminal PowerShell: Raw ANSI mouse tracking sequences echoed to screen
Bug Description
When running Claude Code in Windows Terminal with PowerShell, moving the mouse over the window floods the screen with raw ANSI mouse tracking escape sequences (e.g. [555;31;25M[555;31;26M... plus [O / [I focus events) instead of them being captured by the app; these appear to be SGR mouse mode events (DECSET 1003/1006) being echoed as literal text, printed continuously while the mouse moves, sometimes ending up in the input box and making the session unusable until the screen is cleared. Steps to reproduce: open Windows Terminal with a PowerShell profile, run claude, and move the mouse over the window after a long session. It affects all Terminal tabs with Claude Code open.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.234
- Feedback ID: 818ccfb5-eaaf-4d85-aa8a-c1266e621f05
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗