Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/opencode/src/cli/cmd/tui/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ export function tui(input: {
return new Promise<void>(async (resolve) => {
const unguard = win32InstallCtrlCGuard()
win32DisableProcessedInput()
// If a previous process was killed externally (TerminateProcess on Windows,
// SIGKILL on POSIX), mouse tracking can be left enabled. Reset it before
// the renderer configures its own mouse state.
if (process.stdout.isTTY)
process.stdout.write("\x1b[?1000l\x1b[?1002l\x1b[?1003l\x1b[?1006l")

const mode = await getTerminalBackgroundColor()

Expand Down
Loading