Skip to content

Preserve the cursor on tmux alternate-screen entry - #173

Merged
tony merged 2 commits into
masterfrom
fix/119-tmux-alternate-entry
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/119-tmux-alternate-entry

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #119

What changed, and why:

The tmux profile carries the active cursor and pending wrap into the blank alternate screen for ?47h, ?1047h, and ?1049h. Send CSI H after entry when the application starts drawing at the top left.

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 #173
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:44
@tony
tony force-pushed the fix/119-tmux-alternate-entry branch from b86072f to 6da0436 Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:20
why: tmux carries its cursor into the blank alternate screen.

what:
- Preserve cursor position and pending wrap under the tmux profile.
- Cover the alternate entry modes with native-style byte sequences.
- Document how to home the cursor explicitly after entry.

Fixes #119
why: A tmux application can enter a blank alternate screen with its
     cursor already at the right margin.

what:
- Document cursor position and pending wrap on alternate entry.
@tony
tony force-pushed the fix/119-tmux-alternate-entry branch from 6da0436 to dd68004 Compare December 5, 2026 13:21
@tony
tony changed the base branch from master to fix/113-capture-continuation-fidelity December 5, 2026 13:21
@tony
tony changed the base branch from fix/113-capture-continuation-fidelity to master December 5, 2026 13:26
@tony
tony merged commit 383a216 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/119-tmux-alternate-entry branch December 5, 2026 20:41

This branch was successfully deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The tmux profile loses the cursor column on alternate entry

1 participant