forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
On Windows, the terminal prints garbage when moving the mouse after quitting opencode.
Steps to reproduce:
- On Windows 11, open the built-in Terminal App
- open
opencode.cmd - quit opencode with Ctrl-C
- move the mouse within the terminal window (Terminal App needs to be focused)
Observed behavior:
- Terminal shows the command prompt, and moving the mouse produces lots of "garbage" characters like
C:\src\> [555;64;28M[555;65;27M[555;66;27M[555;66;26M...making it basically unuseable for further interaction. Those can be deleted with "Backspace", but that terminal tab is basically useless for further use.
Expected behavior:
- Terminal shows the command prompt, and moving the mouse does not input characters.
Probably related:
- There is at least one issue on github that describe a similar behavior (might or might not be related): Bug 修正 anomalyco/opencode#9924
- Interestingly, it doesn't print garbage when exited via the "/exit" slash command, but does when exited via Ctrl-C.
- Interestingly, on Windows it exits on first Ctrl-C while docs say you would need to press Ctrl-C twice. Might be a bigger issue of Ctrl-C handling? Might be helpful to first find out how Ctrl-C is meant to work to clear the input. And why it works on Linux but not on Windows. I have the strong feeling that this is the actual core issue that needs to be fixed instead.
Plugins
No response
OpenCode version
1.1.34
Steps to reproduce
see description above
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working