Fullscreen (alternate-screen) mode breaks terminal copy — can't select/copy login URL
What happens
While Claude Code runs in fullscreen (alternate-screen) mode, terminal text selection/copy stops working. I could not select and copy a login URL printed in the console in order to paste it into a browser, which blocked the authentication flow.
Impact
Any auth/login flow that prints a URL to be copied becomes unusable while in fullscreen mode — there is no way to get the URL out of the terminal.
Steps to reproduce
- Run Claude Code with the fullscreen / alternate-screen renderer enabled.
- Trigger a flow that prints a URL to copy (e.g. an auth/login URL).
- Try to select the URL with the mouse to copy it.
- Selection/copy does not work.
Environment
- Linux terminal over SSH, on a remote node (staging).
- Claude Code fullscreen / alternate-screen renderer enabled.
Likely cause
The TUI's mouse tracking / alternate-screen capture intercepts the terminal's native selection, so normal click-drag no longer selects text.
Suggested fix
Make copy work in fullscreen mode — e.g. respect Shift-modified selection, add OSC 52 clipboard support, or expose a copy affordance for printed URLs — and/or render auth URLs in a region that is copyable without leaving fullscreen.
Workaround (for reference)
Holding Shift while dragging bypasses the app's mouse capture in most terminals (then Ctrl+Shift+C), or /tui default exits fullscreen before copying.
3 Comments
Claude Code version:
2.1.191(Claude Code)Same problem.
Title: Copy/paste broken in gnome-terminal since recent update (Ctrl+Shift+C and middle-click)
Body:
Claude Code version: 2.1.195
OS: Ubuntu 25.10
Terminal: gnome-terminal
Description:
Since a recent update, copy/paste no longer works inside Claude Code sessions
in gnome-terminal. Both Ctrl+Shift+C and middle-click (primary selection) are
non-functional. Copy/paste works normally in the same terminal outside of
Claude Code.
Steps to reproduce:
claudeExpected: Text is copied to clipboard
Actual: Nothing is copied, paste in other applications is empty
Workaround: Copy while pressing SHIFT, then paste with middle-click
Revert to inline mode, instead fo Fullscreen :
Copy while pressing SHIFT, then paste withmiddle-click
~/.claude/settings.json :
⎿ Added 1 line, removed 1 line
2 "cleanupPeriodDays": 365,
3 "language": "francais",
4 "voiceEnabled": true,
5 - "tui": "fullscreen"
5 + "tui": "default"
6 }
I found this to be a problem while ssh'd to a remote server on which claude is running.
The workaround is to use
claude auth loginfrom a simple command line. No TUI cleverness, just stuff pushed to standard output. Then it all works.