Eric Traut
4c8cf3964d
Fix SGR mouse reporting for Windows terminal capture ( #48799 )
...
## Why
Some Windows terminals send legacy mouse reports as key records. Requesting SGR reports lets ConPTY translate them into mouse records.
## What changed
Write and flush the SGR encoding request separately from `EnablePointerCapture`, so it also reaches terminals when capture uses the Windows console API. Explicitly reset SGR encoding during Windows mouse cleanup, even if restoring the console mode fails.
## Testing
Add regression tests for cleanup after SGR setup fails and an isolated Windows console test that checks mouse input activation, SGR encoding, and restoration of the original console mode and default encoding.
GitOrigin-RevId: c1a48d641cda4e770dbbe9fdf805a27e036d35c3
2026-09-27 22:13:56 +00:00
..
2026-09-22 16:07:38 +00:00
2026-09-25 19:48:25 +00:00
2026-09-25 19:05:15 +00:00
2026-09-27 22:05:19 +00:00
2026-09-26 23:17:41 +00:00
2026-09-26 18:59:50 +00:00
2026-09-27 22:05:19 +00:00
2026-09-22 06:36:09 +00:00
2026-09-27 19:14:24 +00:00
2026-09-23 18:25:07 +00:00
2026-09-18 00:25:37 +00:00
2026-09-21 22:58:49 +00:00
2026-09-23 00:47:34 +00:00
2026-09-25 00:20:02 +00:00
2026-09-07 16:55:06 +00:00
2026-09-24 00:50:02 +00:00
2026-09-27 15:25:13 +00:00
2026-09-25 16:13:06 +00:00
2026-09-25 16:57:42 +00:00
2026-09-25 16:28:36 +00:00
2026-09-25 15:42:35 +00:00
2026-09-25 20:34:52 +00:00
2026-09-27 11:30:52 +00:00
2026-09-25 00:20:02 +00:00
2026-09-24 01:50:36 +00:00
2026-09-14 19:12:59 +00:00
2026-09-27 21:07:54 +00:00
2026-09-05 01:25:06 +00:00
2026-09-27 22:05:19 +00:00
2026-09-15 18:23:08 +00:00
2026-09-18 22:40:37 +00:00
2026-09-27 22:05:19 +00:00
2026-09-26 23:17:41 +00:00
2026-09-23 22:20:34 +00:00
2026-09-25 08:25:37 +00:00
2026-09-05 12:17:32 +00:00
2026-09-26 23:17:41 +00:00
2026-09-27 15:25:13 +00:00
2026-09-25 18:06:57 +00:00
2026-09-27 22:05:19 +00:00
2026-09-17 04:23:45 +00:00
2026-09-27 20:15:23 +00:00
2026-09-24 17:04:24 +00:00
2026-09-19 01:21:32 +00:00
2026-09-23 18:40:12 +00:00
2026-09-27 20:15:23 +00:00
2026-09-27 20:15:23 +00:00
2026-09-24 09:25:19 +00:00
2026-09-24 14:50:27 +00:00
2026-09-11 21:59:24 +00:00
2026-09-24 18:08:31 +00:00
2026-09-25 19:14:31 +00:00
2026-09-26 03:49:14 +00:00
2026-09-24 11:10:14 +00:00
2026-09-26 17:26:07 +00:00
2026-09-26 03:49:14 +00:00
2026-09-26 03:49:14 +00:00
2026-09-24 20:28:31 +00:00
2026-09-25 19:14:31 +00:00
2026-09-26 23:17:41 +00:00
2026-09-25 02:40:55 +00:00
2026-09-23 22:20:34 +00:00
2026-09-24 15:57:42 +00:00
2026-09-27 22:05:19 +00:00
2026-09-11 03:16:01 +00:00
2026-09-24 23:33:38 +00:00
2026-09-27 15:25:13 +00:00
2026-09-27 22:05:19 +00:00
2026-09-26 23:08:50 +00:00
2026-09-24 18:08:31 +00:00
2026-09-25 19:43:06 +00:00
2026-09-09 04:00:10 +00:00
2026-09-27 03:26:57 +00:00
2026-09-25 20:11:47 +00:00
2026-09-16 09:03:41 +00:00
2026-09-27 22:05:19 +00:00
2026-09-27 15:03:38 +00:00
2026-09-24 20:39:37 +00:00
2026-09-27 22:13:56 +00:00
2026-09-27 19:14:24 +00:00
2026-09-08 00:13:28 +00:00
2026-09-27 15:25:13 +00:00
2026-09-20 20:16:51 +00:00
2026-09-23 04:25:28 +00:00
2026-09-22 23:37:39 +00:00
2026-09-25 19:14:31 +00:00
2026-09-26 20:26:34 +00:00
2026-09-23 00:47:07 +00:00
2026-09-13 18:53:06 +00:00
2026-09-08 21:19:02 +00:00
2026-09-27 15:03:38 +00:00
2026-09-25 14:15:42 +00:00
2026-09-11 06:45:09 +00:00