[BUG] Text cannot be copied from Claude Code's output using `Ctrl+Shift+C` or right-click context menu.

Open 💬 29 comments Opened May 27, 2026 by qtamaki

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Text cannot be copied from Claude Code's output.
Neither Ctrl+Shift+C, right-click context menu, nor middle-click (X primary selection) work.
Other CLI tools in the same terminal allow normal text selection and copy.

What Should Happen?

Text in the terminal output should be selectable and copyable using standard terminal copy methods (Ctrl+Shift+C, right-click, or mouse selection + middle-click).

Error Messages/Logs

Steps to Reproduce

  1. Open a terminal and run claude
  2. Send any prompt and wait for the response
  3. Try to select text in the response with the mouse
  4. Press Ctrl+Shift+C or right-click → no copy operation works
  5. Try mouse selection + middle-click → also does not work

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.152 (Claude Code)

Claude Code Version

2.1.152 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Claude Code's TUI may be capturing mouse events or placing the terminal in a mode (e.g. raw mode or alternate screen) that interferes with normal text selection. This does not occur with other terminal-based AI tools.

View original on GitHub ↗

29 Comments

github-actions[bot] · 1 month ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/61936
  2. https://github.com/anthropics/claude-code/issues/62462
  3. https://github.com/anthropics/claude-code/issues/62457

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

thomasballinger · 1 month ago

What terminal emulator are you using? Use /tui default to change back to the version that allows native selection, but each terminal also has a button to press to enable this for that interaction: Terminal.app: Fn, iTerm2: option

Servo97 · 1 month ago

I see the same issue in terminator (ubuntu 24)

Sorrow321 · 1 month ago

Same issue

NeilGraham · 1 month ago

Same issue on Raspberry Pi 5 running DietPi (Debian)

fabian-lu · 1 month ago

same issue in my pycharm terminal on ubuntu

ulloacastillo · 1 month ago

try hold shift while dragging to select text, then copy whith ctrl+shift+c, this worked for me in ubuntu

larytet · 1 month ago

Workaround is in 62706

larytet · 1 month ago
try _hold shift while dragging to select text_, then copy whith ctrl+shift+c, this worked for me in ubuntu

I am pressing Shift this for two weeks. Annoying,

vandyahmadldm · 1 month ago

it's already fix?

jvanvolken · 1 month ago
1stvamp · 1 month ago

The linked workaround is a different issue to this was afaics, as this happens in a native tty, not on a remote or tmux session.
It didn't work for me.

DennisFaucher · 1 month ago

This is so dumb. Not being able to copy text when claude says "Run this command in another terminal".

I found a dumb workaround as claude -p creates text you can copy.

$ claude -n foobar -p "What is the meaning of life"
(The philosophical short answer: most traditions converge on something like connection, purpose, and growth — but the honest answer is that it's a question each person has to answer for themselves through how they live.)

$ claude --resume foobar -p "In what book was the answer 42?"
The Hitchhiker's Guide to the Galaxy by Douglas Adams. In the story, a supercomputer called Deep Thought spends 7.5 million years calculating the "Answer to the Ultimate Question of Life, the Universe, and Everything" — and the answer is 42. The catch: nobody remembers what the actual question was.

==========================================

claude --resume history -p "How to I name a session on startup, rename a session while in the session, resume that sesion later?"
Name on startup:

claude -n my-session-name

Rename while in a session:

/rename my-session-name

Resume later:

claude --resume my-session-name

Or run claude --resume with no argument to open an interactive picker and search by name.

larytet · 1 month ago

or


fix-tengu() {
    python3 -c "
import json, pathlib
p = pathlib.Path.home() / '.claude.json'
d = json.loads(p.read_text())
d['tengu_pewter_brook'] = False
p.write_text(json.dumps(d, indent=2))
print('tengu_pewter_brook set to false')
"
}

alias claude='fix-tengu && command claude'

On Mon, Jun 15, 2026 at 9:28 PM Dennis Faucher @.***>
wrote:

DennisFaucher left a comment (anthropics/claude-code#62699) <https://github.com/anthropics/claude-code/issues/62699#issuecomment-4711087863> This is so dumb. Not being able to copy text when claude says "Run this command in another terminal". I found a dumb workaround as claude -p creates text you can copy. $ claude -n foobar -p "What is the meaning of life" (The philosophical short answer: most traditions converge on something like connection, purpose, and growth — but the honest answer is that it's a question each person has to answer for themselves through how they live.) $ claude --resume foobar -p "In what book was the answer 42?" The Hitchhiker's Guide to the Galaxy by Douglas Adams. In the story, a supercomputer called Deep Thought spends 7.5 million years calculating the "Answer to the Ultimate Question of Life, the Universe, and Everything" — and the answer is 42. The catch: nobody remembers what the actual question was. ========================================== claude --resume history -p "How to I name a session on startup, rename a session while in the session, resume that sesion later?" Name on startup: claude -n my-session-name Rename while in a session: /rename my-session-name Resume later: claude --resume my-session-name Or run claude --resume with no argument to open an interactive picker and search by name. — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/62699?email_source=notifications&email_token=AABZHBOSSLTSVPI27MLBZN35AA54ZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZRGEYDQNZYGYZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4711087863>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABZHBNFWPAK4BBNJYRZ7WT5AA54ZAVCNFSNUABFKJSXA33TNF2G64TZHM4TGNZSGUZTINZVHNEXG43VMU5TINJSHE2TSNBYGY42C5QC> . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AABZHBMOYVUOI4Q4VTKIV2L5AA54ZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZRGEYDQNZYGYZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android <https://github.com/notifications/mobile/android/AABZHBNZ2SOXCMTSAOV6OEL5AA54ZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZRGEYDQNZYGYZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today! You are receiving this because you commented.Message ID: @.***>
diserere · 21 days ago
What terminal emulator are you using? Use /tui default to change back to the version that allows native selection, but each terminal also has a button to press to enable this for that interaction: Terminal.app: Fn, iTerm2: option

Yes, this workaround with default mode works for me. Ubuntu 26.04, ptyxis as terminal app, claude 2.1.191

ahik · 19 days ago

Same for me ;(

rahmanusta · 18 days ago

It cannot copy

MikkelStaalEggen · 16 days ago

Once CC is up and showing its interface, type this as a command inside CC:
/tui default
Then test: scroll with your normal mouse wheel, and try a plain mouse click-drag (no Shift needed) to select some text, then Ctrl+Shift+C.

qmaruf · 14 days ago

Fedora. Tilix. Same annoying issue.

Mil00Z · 13 days ago

Very bad issue, the trick to "hold" shift is ok for a little bit of text...

SebaViana · 13 days ago

Having this issue on GNOME Terminal 3.52.0

joestitty · 10 days ago

I cant seem to copy either from the textoutput of the terminal. I am using vscode btw.

larytet · 10 days ago

This works ``/tui default``

flaancs · 10 days ago

Same here, neither Ctrl+C nor Ctrl+Shift+C nor right-clicking works; sometimes one works, sometimes the other, sometimes neither. This happens to me with zsh on Debian 13.

tmortagne · 8 days ago

Same problem on Ubuntu 26.04 and claude code 2.1.178. Seems to work fine on Ubuntu 24.04.

To be precise, claude is claiming that it pasted something to the clipboard, but it's not the case. Thankfully the shift+select (indicated in the same message "in case it does not work") is working fine.

It seems to be, at least partly, specific to Ptyxis. This is the new terminal Ubuntu switched to compared to 24.04, and it works fine with others terminals like Kitty on Ubuntu 26.04.

<img width="3840" height="2336" alt="Image" src="https://github.com/user-attachments/assets/e9387289-4557-4046-a054-8a8871947f81" />

As indicated on other issues, and indicated when you select some text in claude, a possible workaround is to hold SHIFT while you select text which will more natively select the text from terminal point of view. That means that you can then use the usual way to copy text on Linux (middle mouse button, or CTRL+SHIT+C).

ignati4444-wq · 4 days ago

Fedora 44, who thought it was a brilliant idea to add a clippable interface to a terminal?
I can no longer reliably copy paste anything from the console.

myifaisal · 3 days ago

I was able to isolate the mouse selection / copy issue to the fullscreen TUI setting.

The issue occurs when this exists in ~/.claude/settings.json:

{
  "tui": "fullscreen"
}

Environment tested:

SHELL=/bin/bash
TERM=xterm-256color
Connection=SSH
OS=Ubuntu and AlmaLinux

Symptoms:

  • Mouse text selection does not work reliably inside Claude Code.
  • Copying selected terminal text fails or becomes inconsistent.
  • The same SSH client and terminal work normally outside Claude Code.

I tested this on both Ubuntu and AlmaLinux servers. After removing only "tui": "fullscreen" from ~/.claude/settings.json and restarting Claude Code, mouse selection/copy worked normally on both systems.

Workaround:

python3 - <<'PY'
import json, pathlib

p = pathlib.Path.home() / ".claude" / "settings.json"

data = {}
if p.exists():
    try:
        data = json.loads(p.read_text())
    except Exception:
        data = {}

data.pop("tui", None)

p.parent.mkdir(parents=True, exist_ok=True)
p.write_text(json.dumps(data, indent=2) + "\n")
print(p.read_text())
PY

I also confirmed the behavior by restoring the old config with "tui": "fullscreen"; the issue returned immediately. Removing it fixed the issue again.

This appears to be related to fullscreen TUI mode capturing or altering terminal mouse/input behavior in SSH sessions.

atomey · 1 day ago

Yep same problem, makes copying over SSH impossible. Removed on two different machines (Debian and Ubuntu) over SSH and now works fine copying and performance is much better also.

In my case, connecting with Terminal (2.14) on macOS Sequoia SSH -> Debian or Ubuntu boxes with CC installed with this same "tui": "fullscreen" in settings.

dragosb0000 · 6 hours ago
"tui": "fullscreen"

Deleting this sorted the problem for me on Mac. Thank you!