Skip to main content
For developers running Atomic interactively, this guide explains how to configure terminal emulators for modified keys (Shift+Enter and Option+Enter), fast trackpad scrolling, Operating System Command (OSC) 52 clipboard copying, inline images, OSC 8 clickable hyperlinks, and OSC 7501 program status reporting. Atomic enables the Kitty keyboard protocol when supported and falls back to xterm modifyOtherKeys otherwise. For multiplexer or OS-specific setup, see Run Atomic in tmux, Run Atomic on Windows, or Run Atomic in Herdr.
Both Shift+Enter and Ctrl+J insert a newline by default (tui.input.newLine). If your terminal can’t distinguish Shift+Enter from Enter, press Ctrl+J right away with no configuration changes.

Terminal compatibility

Atomic detects terminal capabilities automatically. The following table summarizes out-of-the-box support across common terminals:

Terminal emulator settings

Select your terminal in the following sections for any recommended configuration tweaks.

Kitty

Kitty works out of the box with Kitty inline images, OSC 8 hyperlinks, truecolor, and modified keys.

iTerm2

Key reporting, iTerm2 inline images, OSC 8 hyperlinks, and truecolor work out of the box. In the fullscreen terminal UI, Atomic owns the viewport, so iTerm2 sends mouse-wheel reports instead of scrolling its native scrollback. iTerm2’s default fast-trackpad setting can drop most of an accelerated wheel delta in those reports, making fullscreen scrolling feel slower than native scrolling. If fast trackpad scrolls move only about one line at a time, follow these steps:
1

Open iTerm2 Advanced settings

In iTerm2, open Settings > Advanced.
2

Disable fast-trackpad throttling

Search for Trackpad scrolls fast? and set it to No.
3

Confirm scrolling speed

Return to Atomic and scroll the transcript with your trackpad to confirm faster line movement.
This setting applies across iTerm2 and might also affect native trackpad scrolling. See iTerm2 issue 9619.

Apple Terminal

Atomic enables enhanced key reporting when available. If Terminal.app still sends plain Return or ESC+CR when you press Shift+Enter, Atomic uses a local macOS modifier fallback to recognize Shift+Enter (this works only on the same Mac as Terminal.app, not over remote SSH). Apple Terminal doesn’t support 24-bit truecolor, so Atomic automatically uses 256-color mode. Because Terminal.app draws gaps between rows of the block-character logo, Atomic displays a text ∀ Atomic wordmark with version and session details instead.

Ghostty

To make Option+Backspace or Alt+Backspace delete the previous word cleanly, add this line to your Ghostty config (~/Library/Application Support/com.mitchellh.ghostty/config on macOS, or ~/.config/ghostty/config on Linux):
Older setups might contain keybind = shift+enter=text:\n. That mapping sends a raw linefeed byte (Ctrl+J), preventing tmux and Atomic from receiving a real Shift+Enter key event—remove it unless another tool still needs it. Because Ctrl+J is already bound to tui.input.newLine (["shift+enter", "ctrl+j"]), keeping it still inserts a newline in Atomic with no keybinding changes. In the fullscreen terminal UI, links stay clickable, though Ghostty hides its hover underline and lower-left URL preview while Atomic captures mouse input. Hold Shift+Command on macOS or Shift+Ctrl on Linux to use Ghostty’s native link handling.

WezTerm

WezTerm usually works out of the box for Shift+Enter through xterm modifyOtherKeys. To enable the Kitty keyboard protocol explicitly and forward Option+Enter for macOS or Linux follow-up queueing (WezTerm binds Option+Enter to fullscreen on macOS by default), add the following to ~/.wezterm.lua:
If you already have a ~/.wezterm.lua or config.keys table, merge these settings into your existing file instead of replacing it. On Windows Subsystem for Linux (WSL), WezTerm might need a visible hardware cursor to position Chinese, Japanese, and Korean Input Method Editor (CJK IME) candidate windows. Set "showHardwareCursor": true in ~/.atomic/agent/settings.json, or set ATOMIC_HARDWARE_CURSOR=1 (legacy PI_HARDWARE_CURSOR=1) before launching Atomic. An explicit showHardwareCursor value in settings.json takes precedence over the environment variable.

Alacritty

Alacritty usually works out of the box for Shift+Enter. On macOS, Option+Enter might arrive as plain Enter. To forward Option+Enter for follow-up queueing, add the following entry to ~/.config/alacritty/alacritty.toml, restart Alacritty, and confirm Option+Enter queues a follow-up message in Atomic:

VS Code (integrated terminal)

VS Code 1.109.5 and newer enable the Kitty keyboard protocol in the integrated terminal by default, so Shift+Enter works out of the box. On older VS Code versions, add this terminal keybinding to keybindings.json (~/Library/Application Support/Code/User/keybindings.json on macOS, ~/.config/Code/User/keybindings.json on Linux, or %APPDATA%\Code\User\keybindings.json on Windows):

Zed (integrated terminal)

To enable Shift+Enter, editor undo (Ctrl+-), and jump-backward (Ctrl+Alt+]), add these bindings to your Zed keymap.json:

Windows Terminal

On native Windows, Atomic checks the native Shift modifier on Return automatically. When using WSL, SSH into Linux, or explicit Control Sequence Introducer u (CSI-u) reporting, press Ctrl+Shift+, (or open Settings, then Open JSON file) and add this shift+enter action to settings.json:
On Windows and WSL, follow-up queueing defaults to Ctrl+Q and dequeue defaults to Alt+Q, so you don’t need to remap Alt+Enter for default shortcuts. Add an alt+enter action ("input": "\u001b[13;3u") only if you bind an Atomic action to alt+enter yourself. If you already have an actions array, append the entry to it and fully reopen Windows Terminal.

xfce4-terminal and terminator

These terminals have limited escape-sequence support and can’t distinguish Ctrl+Enter or Shift+Enter from plain Enter. Press Ctrl+J to insert newlines right away, or switch to a terminal with Kitty keyboard protocol support such as Kitty, Ghostty, WezTerm, iTerm2, or Alacritty for full modified-key bindings.

IntelliJ IDEA (integrated terminal)

The built-in terminal can’t distinguish Shift+Enter from Enter. Press Ctrl+J to insert newlines, or use a dedicated terminal emulator for full keybinding support. Atomic hides the hardware cursor by default for compatibility. To show it, set "showHardwareCursor": true in settings or launch with ATOMIC_HARDWARE_CURSOR=1 (legacy PI_HARDWARE_CURSOR=1).

Clipboard and mouse behavior

Atomic integrates with local clipboards, remote OSC 52 clipboards, and fullscreen mouse interaction.

Clipboard and OSC 52

Atomic writes to your local clipboard with the platform tool (pbcopy on macOS, clip on Windows, wl-copy from wl-clipboard on Wayland, or xclip or xsel on X11). Clipboard behavior across local and remote sessions follows these rules:
  • Remote and headless sessions: Over SSH, Mosh, or Rex (when SSH_CONNECTION, SSH_CLIENT, MOSH_CONNECTION, or REX_SESSION is set), and on headless Linux without DISPLAY or WAYLAND_DISPLAY, Atomic automatically sends copies through OSC 52 so your local client terminal receives the text.
  • WSL: Inside Windows Terminal (WT_SESSION), Atomic prefers OSC 52 and falls back to Windows clipboard interop.
  • Forcing OSC 52: Set ATOMIC_CLIPBOARD_OSC52=1 (legacy PI_CLIPBOARD_OSC52=1) to also emit OSC 52 after local clipboard writes, which helps inside remote multiplexers or IDE daemons that don’t set SSH environment variables.
  • Size limit and terminal support: OSC 52 payloads cap at 100,000 base64 characters (about 75 KB of UTF-8 text). Larger copies fail with a size-limit error when no local clipboard is available. Confirm that your terminal emulator allows clipboard writes through OSC 52.

Mouse, trackpad, and text selection

In the fullscreen terminal UI, Atomic captures mouse input for clicking expandable blocks and key hints, wheel scrolling (Alt+wheel scrolls five times as far when your terminal forwards Alt with wheel events), and drag, double-click, or triple-click selection. Configure and override mouse behavior with these rules:
  • Auto-copy and scroll settings: Text selection copies automatically on mouse release unless you set "fullscreenCopyOnSelect": false in Settings. Adjust wheel speed with fullscreenWheelScrollLines ("auto" or 1 to 100) and scrollbar visibility with fullscreenScrollbar ("auto", "always", or "hidden").
  • Windows right-click paste: On native Windows outside VS Code’s integrated terminal, an unmodified secondary mouse click pastes clipboard text into the focused input.
  • Multiplexers: Inside tmux, GNU Screen, and Zellij, Atomic reports mouse movement only while dragging instead of tracking every pointer move, keeping terminal traffic light while preserving clicks, scrolling, and drag selection.
  • Native terminal override: Hold Shift (or Shift+Command on macOS and Shift+Ctrl on Linux in Ghostty) to bypass Atomic’s mouse capture and use your terminal emulator’s own selection or link handling.
You can override detected image, hyperlink, and color capabilities in ~/.atomic/agent/settings.json (settings take precedence over environment variables) or with environment variables. The following table lists every terminal capability override: See Run Atomic in tmux for multiplexer-specific image and hyperlink details.

SSH and Escape key delay

When Atomic receives a lone ESC byte, it waits briefly to tell whether you pressed Escape or started an Alt or escape sequence. The default wait is 10 ms locally and 100 ms when SSH_CONNECTION or SSH_TTY is set. Over high-latency SSH connections, if Alt combinations register as Escape, increase this wait with ATOMIC_TUI_ESC_TIMEOUT (legacy PI_TUI_ESC_TIMEOUT):

Program status

Atomic reports its state using the Program Status Protocol (OSC 7501) so supporting terminals and dashboards can display whether it is working, waiting for input, done, or failed. The following table lists each reported state and when Atomic emits it: Reports never include prompts or model output. Status messages cap at 2,048 UTF-8 bytes, and Atomic replaces control characters with spaces. On normal exit or Ctrl+Z suspend, Atomic sends state=clear to remove the indicator and re-sends its status on resume. Atomic sends reports only after the terminal answers its support query; tmux and GNU Screen don’t forward OSC 7501. Set ATOMIC_PROGRAM_STATUS=1 to force reports without querying, or ATOMIC_PROGRAM_STATUS=0 to disable them (PI_PROGRAM_STATUS is a legacy alias). Any other value queries the terminal normally.

Troubleshooting

Use the following checks when terminal input, clipboard, or display behaves unexpectedly:
  • Shift+Enter submits the prompt instead of inserting a newline: Press Ctrl+J immediately, or apply the binding for your terminal in the preceding sections (or Run Atomic in tmux if you’re inside tmux).
  • Clipboard copies fail over SSH or inside a remote multiplexer: Enable OSC 52 clipboard writes in your local terminal emulator, and launch Atomic with ATOMIC_CLIPBOARD_OSC52=1.
  • Trackpad scrolling moves one line at a time in iTerm2: Set Advanced > Trackpad scrolls fast? to No.
  • Hovering a link doesn’t open it in Ghostty: Hold Shift+Command on macOS or Shift+Ctrl on Linux to use Ghostty’s native link handling.

Next steps

Continue configuring your terminal environment and shortcuts: