fix(tui/win32): clear queued mouse input on Ctrl+C exit#609
fix(tui/win32): clear queued mouse input on Ctrl+C exit#609Olusammytee wants to merge 1 commit intoKilo-Org:devfrom
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
|
There was a problem hiding this comment.
Pull request overview
This PR fixes a Windows-specific bug where mouse input events queued in the console buffer persist after the Kilo CLI exits with Ctrl+C, causing garbage text (e.g., [555;27;21M) to appear in the terminal when moving the mouse afterward. The fix adds a call to FlushConsoleInputBuffer in the unhook function to clear the input buffer before restoring the console mode.
Changes:
- Adds
FlushConsoleInputBuffercall to clear queued mouse/keyboard events before restoring normal console input mode on Windows
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Fixes #151