Skip to content

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

Open
tony wants to merge 2 commits into
masterfrom
fix/119-tmux-alternate-entry
Open

tony wants to merge 2 commits into
masterfrom
fix/119-tmux-alternate-entry

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Member

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.

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
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
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.

This branch was previously deployed

1 inactive deployment
docs — 6da0436a Deployed Dec 4, 2026 by tony via build (3.14) #334
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