Fix terminal copy/select and mobile scroll#40
Merged
Conversation
Upgrade xterm v5 to @xterm/xterm v6 with ClipboardAddon to enable proper clipboard integration. Intercept mousedown on .xterm-screen to force local selection mode instead of forwarding mouse events to tmux (which was causing selection to clear on mouseup). Add touch-to-wheel conversion for mobile terminal scrolling and disable pull-to-refresh overscroll on html/body. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Enable screenReaderMode on touch devices so xterm renders its accessibility text layer, then allow pointer-events on that layer via CSS media query. This lets native long-press selection work on mobile. Also add overscroll-behavior:none to prevent pull-to-refresh. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Redesign mobile terminal toolbar: two-row centered layout with Ctrl toggle modifier, action keys, keyboard input modal, and arrow keys - Make Ctrl a toggle button that applies modifier to next keystroke - Remove media status icon from footer - Center footer status icons with justify-around - Hide status text labels (OK, CONNECTED, etc.) on mobile Co-Authored-By: Claude Opus 4.6 <[email protected]>
When connected to an agent session, display the agent's latest event message (e.g. "Working on feature X") in the header instead of the generic "Connected to session <name>" text. Falls back to the original text if no event message is available. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@xterm/addon-clipboardfor proper clipboard integration.xterm-screenand re-dispatch with shift+alt to force local selection mode instead of forwarding mouse events to tmuxtouch-action: nonescreenReaderModeon touch devices and allow pointer-events on the accessibility text layeroverscroll-behavior: noneon html/bodyTrade-offs
screenReaderModeis enabled on touch devices to render the accessibility text layer for long-press selection. Minimal performance impact.Test plan
npm run check)🤖 Generated with Claude Code