res-console: terminal state not restored on exit — mouse tracking leaks #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
Exiting res-console (after running TUI mode displays, e.g. res-theme inside res-console + Alt+A menu) does not properly restore terminal state. Mouse movement events keep spamming text into the terminal after res-console closes. The
resetcommand does not clear it.Expected
On exit, res-console must disable mouse tracking (and any other terminal modes it enabled) so the shell returns to a clean state.
Notes
Appears finicky — reproduced specifically by running res-theme within res-console then using the Alt+A menu.
Found
2026-10-19, testing via
wsl.exe.Update 2026-10-19
Broader pattern confirmed: full TUI apps running under res-console are generally wonky (rendering glitches, state leaks). The mouse-tracking leak above is one symptom. res-console needs a proper child-TUI containment strategy — save/restore full terminal state around child app execution.