Pressing Ctrl+C in input field outputs ANSI escape sequences/garbled text
Description
Environment:
Application: opencode (Sisyphus)
Shell: Windows PowerShell
OS: Windows 11
Model: gemini-1.5-flash-8b
Description: When attempting to use the Ctrl+C keyboard shortcut within the opencode input field (specifically while using the Sisyphus interface), the terminal outputs a long string of garbled ANSI escape codes (e.g., [555;20;24M...) instead of copying text or sending an interrupt signal.
Steps to Reproduce:
Open opencode in a Windows PowerShell terminal.
Navigate to the input/chat box.
Press Ctrl+C.
Observe the garbled text outputting at the command prompt.
Expected Behavior: The shortcut should either copy the selected text or clear the current input line without printing raw terminal escape sequences.
Actual Behavior: A long string of numeric ANSI codes is printed to the terminal, making the interface difficult to use and cluttering the command line.
Plugins
oh-my-opencode
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
This issue might be a duplicate of existing issues. Please check:
- #6912: Ctrl+C does not disable mouse tracking, causing raw escape sequences to flood terminal (Windows) - Same symptoms with raw escape sequences appearing on Windows
- #6189: In the Windows system, pressing Ctrl+C will automatically exit the terminal - Related Windows Ctrl+C behavior issue
- #5181: Input sometimes starts to only show ASCII escape codes - Similar issue with ASCII/ANSI escape codes appearing in input
Feel free to ignore if none of these address your specific case.