claude-code - 💡(How to fix) Fix Cannot copy text from Claude responses in interactive TUI (GNOME Terminal, Ubuntu 24.04)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In the interactive TUI, it is impossible to copy text from Claude's responses to the clipboard. The issue is specific to Claude's response area — copying works normally for all other terminal content.

Root Cause

In the interactive TUI, it is impossible to copy text from Claude's responses to the clipboard. The issue is specific to Claude's response area — copying works normally for all other terminal content.

Fix Action

Workaround

  • Middle-click paste after selecting
  • Use claude -p "question" in a separate terminal tab for plain copyable output
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code: 2.1.142
  • OS: Ubuntu 24.04
  • Terminal: GNOME Terminal

Description

In the interactive TUI, it is impossible to copy text from Claude's responses to the clipboard. The issue is specific to Claude's response area — copying works normally for all other terminal content.

Steps to reproduce

  1. Start an interactive session: claude
  2. Send any message and wait for a response
  3. Select text from Claude's response with the mouse
  4. Press Ctrl+Shift+C to copy

Expected behavior

Selected text is copied to the clipboard.

Actual behavior

Clipboard is unchanged (previous clipboard content is retained). Right-click context menu also does not work in the response area.

Additional finding

X11 primary selection works — text selected in the response area can be pasted via middle-click. Only the clipboard copy (Ctrl+Shift+C) is broken, suggesting Claude Code intercepts the shortcut in the response area without copying to clipboard.

Workaround

  • Middle-click paste after selecting
  • Use claude -p "question" in a separate terminal tab for plain copyable output

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Selected text is copied to the clipboard.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING