Select and copy text, even out of Claude Code

In an ordinary pane — a shell prompt, a log — long-press the text: dotMux shows an iOS selection with drag handles and a Copy menu, extending character by character, like any iOS text view.

Full-screen apps like Claude Code

Claude Code, htop, and vim are different: they capture the mouse and re-wrap their own text to fit the screen, so copying the screen as-is would bake those visual line breaks into your clipboard. Over these apps, dotMux hands your gesture to the app itself:

  • Long-press, then drag in one motion — Claude Code renders its own highlight as you sweep. Lift your finger, and the app’s copy lands on your device clipboard (you’ll feel a success haptic). A transcript line that was wrapped on screen arrives as one logical line — no stray line breaks, no indent artifacts.
  • Long-press without dragging — after a moment dotMux falls back to its own selection with handles and a Copy menu. Handy for grabbing exactly what’s on screen, but the text is copied as displayed, wrap points included.
  • Apps that capture the mouse but never copy (htop, vim with mouse mode) fall back to the handle selection the same way.

This works with tmux and on a plain connection (no multiplexer) alike. With tmux, the instant app-copy handoff needs tmux 3.4 or newer on the host; dotMux configures the rest automatically. On herdr it isn’t available: herdr doesn’t pass a program’s copy on, so every copy there is your own handle selection.

Copy Joined

When you copy from your own handle selection, Claude Code’s wrapped lines are copied as displayed. If dotMux sees lines the app wrapped itself, the menu also offers Copy Joined, which rejoins them — with tmux, herdr and plain connections alike. Copy (and ⌘C) always copies exactly what you selected.

When a program copies on its own

A program can also copy without a gesture — an editor yank, an agent’s copy command. On a plain connection, Allow Apps to Copy (Settings → Terminal, on by default) lets the program you’re looking at put text on your clipboard that way; turn it off and a program’s copy lands only when you asked for it with a long-press. With tmux, Mirror tmux Buffer Copies decides instead; under herdr, programs can’t put text on your clipboard. Programs can never read your clipboard.

Copies from your other tmux clients

There’s also an opt-in extra — Mirror tmux Buffer Copies (Settings → Terminal) — that puts text you copy in any attached tmux client (copy-mode on your laptop, say) onto this device’s clipboard too.

See also: Claude Code on iPhone

Still stuck? Email info@dotmux.app, or search every topic.