Copying text from terminal output includes hard line breaks at every wrapped line

Open 💬 4 comments Opened Apr 14, 2026 by Dmytro123456

When copying text from Claude Code's terminal output, the clipboard contains hard newlines at the end of every display line (matching the terminal width), rather than preserving the original paragraph structure. This makes pasted text look broken, especially with larger font sizes where lines are shorter.

Steps to reproduce

  1. Use a terminal with a larger font size (fewer columns)
  2. Get a multi-sentence response from Claude Code
  3. Select and copy the text
  4. Paste into any editor

Expected

Paragraphs paste as continuous text, with newlines only where the original text had them.

Actual

Every visual line break becomes a hard newline in the clipboard. The copied text contains line breaks at every terminal-width boundary, making it unusable for pasting into documents, messages, etc.

Notes

  • The problem is worse with larger font sizes since lines are shorter and there are more artificial breaks
  • This affects all text output, including code explanations, summaries, and other prose

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗