Skip to content

Phase C input decoder M7: Mouse-mode policy + /mouse toggle #815

Description

@jsavin

Summary

Phase C input decoder, milestone M7. Part of the Option C redesign per planning/phase_c/INPUT_DECODER_PLAN.md.

On-demand mouse enable/disable (auto-enable on palette open, restore on close). /mouse on/off slash command. Footer hint updates.

Context

PR #808 attempted to fix issue #805 with termbox2's existing input path and introduced regressions in real Terminal.app (SGR byte leakage, Option-arrows still broken, copy/paste hijacked). Architectural review (system-architect, 2026-06-29) recommended replacing termbox2's input path with a custom decoder while keeping its rendering path.

Full plan: planning/phase_c/INPUT_DECODER_PLAN.md (committed at 1babc25).

Spec

See INPUT_DECODER_PLAN.md section 7, milestone M7 for deliverables, done criteria, LOC estimate, and dependencies.

Dependencies

Depends on M6 (decoder must be the live path before toggle is meaningful).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions