Claude Code’s Cmd+C Shortcut Breaks a Longstanding Terminal Habit

October 29, 2026 • Mastodon • RSS

I’m frustrated that Claude Code’s CLI changes how copying works in macOS Terminal. On a Mac, Cmd+C is the familiar copy shortcut; in a terminal, Ctrl+C interrupts a running process. When an interactive CLI takes over mouse selection and copy behavior, those conventions collide. Muscle memory has made me press Cmd+C to copy selected text and interrupt Claude instead.

A vintage cartoon shows a startled user pressing a C key as a computer stops and a sheet of paper flies away.

Copying on selection is not a good substitute. People select text to read or inspect it, not necessarily to copy it. Automatically putting every selection on the clipboard can overwrite something they meant to keep. It feels like a workaround that gets in the way and overrides established system behavior.

Restore native mouse behavior in Claude Code

Add this to ~/.claude/settings.json:

{
  "env": {
    "CLAUDE_CODE_DISABLE_MOUSE": "1"
  }
}

Restore native mouse behavior in Codex CLI

Add these settings to ~/.codex/config.toml:

[tui]
disable_mouse_capture = true
copy_on_select = "never"

disable_mouse_capture lets the terminal handle mouse selection and copy shortcuts. copy_on_select = "never" disables Codex’s automatic copying when you release a text selection. Restart Codex CLI after changing the configuration.