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 forextended-keys-format csi-u(with tmux 3.2 through 3.4, omit that line; Atomic still parses tmux’s defaultxtermformat). - 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 If you run tmux 3.2 through 3.4, omit
~/.tmux.conf and add the following lines: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.extended-keys on(oralways) andextended-keys-format csi-u: Forwards modified keys such asShift+EnterandCtrl+Enter. Whenever$TMUXis set, Atomic checks both options at startup and warns ifextended-keysis off or ifextended-keys-formatisxterm.escape-time 10: Lowers tmux’s Escape key delay from older defaults (up to 500 ms) to 10 ms soEscapecancels runs and closes dialogs without lag. Over high-latency SSH inside tmux, ifAltkeys register asEscape, raiseATOMIC_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.
CSI-u extended-key encoding
With onlyset -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:
Inline images, hyperlinks, mouse, and clipboard
Keep the following multiplexer behaviors in mind when running Atomic inside tmux:- Inline images: Atomic disables inline image protocols whenever
$TMUXis set orTERMstarts withtmux, even if tmux hasallow-passthrough on. If your outer terminal and tmux setup support image passthrough, explicitly override the protocol withterminal.imagesin~/.atomic/agent/settings.json(Terminal and images settings) orATOMIC_IMAGE_PROTOCOL=kitty(oriterm2; see Terminal and display variables). - OSC 8 hyperlinks: Inside tmux, Atomic queries
client_termfeatures(250 ms timeout) and emits clickable hyperlinks only whenhyperlinksis listed. Addset -as terminal-features ',*:hyperlinks'to~/.tmux.conf, or force hyperlinks with"terminal": { "hyperlinks": true }orATOMIC_HYPERLINKS=1. - Clipboard over SSH (OSC 52): Over SSH inside tmux, OSC 52 copies require
set -g set-clipboard on(andset -g allow-passthrough ondepending 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+Vinstead ofCmd+V. On Linux,Ctrl+Vpastes images as usual; on Windows and Windows Subsystem for Linux (WSL), useAlt+VorCtrl+V. See Keybindings.
Troubleshooting
Use the following checks for other common tmux issues:Shift+Enterstill submits after editing~/.tmux.conf: Restart the tmux server completely withtmux kill-server && tmuxinstead of runningtmux source-file, and verify your outer terminal supports extended keys.- Links aren’t clickable inside tmux: Confirm
tmux display-message -p '#{client_termfeatures}'includeshyperlinks, or force hyperlinks withATOMIC_HYPERLINKS=1. - Clipboard copies don’t reach your local machine over SSH: Enable
set -g set-clipboard on(andset -g allow-passthrough onif your tmux version requires it), confirm your outer terminal allows OSC 52, and launch Atomic withATOMIC_CLIPBOARD_OSC52=1.
Next steps
Explore related terminal and shortcut guides:- Configure your terminal: configure your outer terminal emulator for modified keys and OSC 52.
- Keybindings: customize editor and navigation shortcuts.
- Run Atomic in Herdr: run Atomic in Herdr with built-in status indicators and session restore.