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
- Use a terminal with a larger font size (fewer columns)
- Get a multi-sentence response from Claude Code
- Select and copy the text
- 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
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗