Skip to content

Select mouse tracking and coordinate formats independently - #177

Merged
tony merged 4 commits into
masterfrom
fix/83-mouse-mode-selection
Dec 5, 2026
Merged

tony merged 4 commits into
masterfrom
fix/83-mouse-mode-selection

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #83
Closes #111
Closes #124

What changed, and why:

A mouse mode request replaces the previous selection in its group. Classic releases retain modifiers, and X10 reports only unmodified primary button presses. Runnable examples cover classic limits, SGR cells and pixels, and wheel input.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #177
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:47
@tony
tony force-pushed the fix/83-mouse-mode-selection branch from d8308a3 to ce7cb7e Compare December 3, 2026 23:58
tony added 4 commits December 5, 2026 07:39
why: Leaving overlapping modes active can send the wrong mouse report.

what:
- Select one tracking mode and one coordinate format.
- Preserve host-specific resets and unordered capture precedence.
- Test live modes, retained snapshots and captured metadata.

Fixes #83
why: Classic releases lose modifiers and X10 presses include them.

what:
- Keep modifier bits on classic release reports.
- Emit X10 reports for unmodified primary button presses.
- Check SGR and wheel reports under the corresponding tracking modes.

Fixes #111
why: Wide terminals can exceed the classic coordinate range.

what:
- Show classic overflow and the SGR cell and pixel forms.
- Document how to encode a single wheel detent.

Fixes #124
why: A tracking mode and a coordinate format can change independently.

what:
- Document mode replacement, classic release modifiers and X10 presses.
@tony
tony force-pushed the fix/83-mouse-mode-selection branch from ce7cb7e to 905fdf1 Compare December 5, 2026 13:39
@tony
tony changed the base branch from master to fix/101-tab-pending-wrap December 5, 2026 13:39
@tony
tony changed the base branch from fix/101-tab-pending-wrap to master December 5, 2026 13:45
@tony
tony merged commit cfe4040 into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/83-mouse-mode-selection branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — 905fdf12 Deployed Dec 5, 2026 by tony via build (3.14) #423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant