Mouse escape characters to terminal after closing open-tui app (opencode)
Author: hoeggeCreated Sep 23, 2026Updated Sep 23, 2026
OpenCode uses open-tui, and after you quite the program, the mouse output is still sent to the terminal. It differs a bit between what people experience. On my Win 11 it only happens in git Bash, not in cmd.exe or conemu64.exe, whereas others report it happening in powershell too
Examples: https://github.com/anomalyco/opencode/issues/11748 https://github.com/anomalyco/opencode/issues/20458 https://github.com/anomalyco/opencode/issues/7062 https://github.com/anomalyco/opencode/issues/10951
Isn't this an open-tui issue, to not turn that off before exiting, no matter what terminal the program runs in?
Source: anomalyco/opentui