Skip to main content
For developers running Atomic interactively inside tmux, this guide configures modified keys (Shift+Enter and Ctrl+Enter), fast Escape handling, mouse scrolling, Operating System Command (OSC) 52 clipboard copying, and OSC 8 clickable hyperlinks. Without configuration, tmux strips modifier keys, delays Escape, and filters hyperlinks by default, causing Shift+Enter and Ctrl+Enter to arrive as plain Enter. For terminal automation, prefer Herdr when available, with tmux or native Windows psmux as fallbacks (see Computer use and /skill:tmux in Bundled skills).

Before you begin

Before you configure tmux, confirm the following:
  • Check your tmux version with tmux -V. You need tmux 3.5 or later for extended-keys-format csi-u (with tmux 3.2 through 3.4, omit that line; Atomic still parses tmux’s default xterm format).
  • Use an outer terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, or Windows Terminal).

Configure tmux for Atomic

Follow these steps to enable extended keys, mouse input, clipboard forwarding, and hyperlinks in tmux:
1

Add recommended options to ~/.tmux.conf

Open ~/.tmux.conf and add the following lines:
If you run tmux 3.2 through 3.4, omit set -g extended-keys-format csi-u.
2

Restart the tmux server

Reloading a running config doesn’t always apply extended-keys and terminal-feature changes to existing sessions. Restart the server cleanly:
3

Start Atomic and confirm modified keys

Run atomic inside tmux, type a word, and press Shift+Enter. Confirm that Atomic inserts a newline instead of submitting the prompt and shows no tmux extended-keys startup warning.
Each setting controls a specific terminal feature:
  • extended-keys on (or always) and extended-keys-format csi-u: Forwards modified keys such as Shift+Enter and Ctrl+Enter. Whenever $TMUX is set, Atomic checks both options at startup and warns if extended-keys is off or if extended-keys-format is xterm.
  • escape-time 10: Lowers tmux’s Escape key delay from older defaults (up to 500 ms) to 10 ms so Escape cancels runs and closes dialogs without lag. Over high-latency SSH inside tmux, if Alt keys register as Escape, raise ATOMIC_TUI_ESC_TIMEOUT (see SSH and Escape key delay).
  • mouse on: Forwards clicks, wheel scrolling, and drag selection to Atomic’s fullscreen viewport.
  • set-clipboard on: Lets OSC 52 clipboard copies reach your outer terminal.
  • terminal-features ',*:hyperlinks': Advertises OSC 8 hyperlink forwarding so Atomic renders clickable links.
With only set -g extended-keys on, tmux defaults to extended-keys-format xterm, which encodes modified keys using legacy xterm modifyOtherKeys sequences. Setting extended-keys-format csi-u (tmux 3.5 and later) switches to unambiguous Control Sequence Introducer u (CSI-u) encoding; Atomic parses both formats, and csi-u works most reliably across modern outer terminals. The following table compares how Enter combinations arrive with and without extended keys:
Ctrl+J always inserts a newline out of the box, even without extended keys configured.
Keep the following multiplexer behaviors in mind when running Atomic inside tmux:
  • Inline images: Atomic disables inline image protocols whenever $TMUX is set or TERM starts with tmux, even if tmux has allow-passthrough on. If your outer terminal and tmux setup support image passthrough, explicitly override the protocol with terminal.images in ~/.atomic/agent/settings.json (Terminal and images settings) or ATOMIC_IMAGE_PROTOCOL=kitty (or iterm2; see Terminal and display variables).
  • OSC 8 hyperlinks: Inside tmux, Atomic queries client_termfeatures (250 ms timeout) and emits clickable hyperlinks only when hyperlinks is listed. Add set -as terminal-features ',*:hyperlinks' to ~/.tmux.conf, or force hyperlinks with "terminal": { "hyperlinks": true } or ATOMIC_HYPERLINKS=1.
  • Clipboard over SSH (OSC 52): Over SSH inside tmux, OSC 52 copies require set -g set-clipboard on (and set -g allow-passthrough on depending on your tmux version) so copied text reaches your local clipboard. See Clipboard and mouse behavior.
  • Mouse scrolling and selection: With set -g mouse on, Atomic handles clicks, drag selection, and wheel scrolling inside panes. Inside tmux, Atomic reports mouse movement only while dragging instead of tracking every pointer move, keeping terminal traffic light.
  • Program status (OSC 7501): tmux doesn’t forward OSC 7501 status reports. See Program status.
  • Image paste: Inside tmux on macOS, paste clipboard images with Ctrl+V instead of Cmd+V. On Linux, Ctrl+V pastes images as usual; on Windows and Windows Subsystem for Linux (WSL), use Alt+V or Ctrl+V. See Keybindings.

Troubleshooting

tmux 3.6 startup text corruption (tmux#4749): In tmux 3.6, fragments such as c0c/0c0c/0c0c can appear in the editor at startup because tmux 3.6 forwards Atomic’s startup color queries and can pass a split reply into the editor as typed text. Changing Atomic’s theme doesn’t fix it—upgrade tmux to a fixed release.
Use the following checks for other common tmux issues:
  • Shift+Enter still submits after editing ~/.tmux.conf: Restart the tmux server completely with tmux kill-server && tmux instead of running tmux source-file, and verify your outer terminal supports extended keys.
  • Links aren’t clickable inside tmux: Confirm tmux display-message -p '#{client_termfeatures}' includes hyperlinks, or force hyperlinks with ATOMIC_HYPERLINKS=1.
  • Clipboard copies don’t reach your local machine over SSH: Enable set -g set-clipboard on (and set -g allow-passthrough on if your tmux version requires it), confirm your outer terminal allows OSC 52, and launch Atomic with ATOMIC_CLIPBOARD_OSC52=1.

Next steps

Explore related terminal and shortcut guides: