tmux status-bar touch controls for mobile - #10
Merged
Conversation
Managing tmux windows on a phone was the friction point: modifier keys (Ctrl-b, Alt) transmit unreliably on mobile terminals, and startup-command tricks fail once an agent is running in the pane (no shell to type into). The one input that always works is a status-bar tap — tmux handles those itself, regardless of pane contents. So the status bar is now a touch control panel: tap a window name to switch, tap [+] for a new window, tap [x] to close one (y/n confirm so a stray tap can't kill a running agent). Implemented via range=user status regions + a MouseDown1Status dispatch whose else-branch is the default select-window, so desktop/keyboard behavior (prefix+c / & / n / p) is unchanged. Verified functionally on-device; box brought to parity. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Why
Managing tmux windows from a phone was awkward. The research-backed reasons the obvious fixes don't work: Ctrl-b/Alt modifiers transmit unreliably on mobile terminals, and startup-command tricks break once an agent runs in the pane (no shell). The one reliable mobile input is a status-bar tap — tmux handles those itself, whatever the pane is running.
What
The status bar becomes a touch panel:
[+]→ new window (in current dir)[x]→ close current window (y/n confirm, so a mis-tap can't kill a running agent)Implemented with
range=userstatus regions + aMouseDown1Statusdispatch whose else-branch is the stockselect-window, so keyboard/desktop behavior (prefix+c/&/n/p) is untouched. Alt bindings from earlier iterations were dropped as unreliable. README daily-use updated.Verified
Config loads clean on the box (tmux 3.4,
source-fileno errors); default window-tap-switch preserved; no personal residue; functionally confirmed on-device by tapping the three gestures; box brought to exact parity with the repo.make checkgreen.🤖 Generated with Claude Code