Fullscreen (alternate-screen) mode breaks terminal copy — can't select/copy login URL

Status Open
Maintainer reply None cached
Activity 3 comments · opened Jun 25, 2026

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

  1. Run Claude Code with the fullscreen / alternate-screen renderer enabled.
  2. Trigger a flow that prints a URL to copy (e.g. an auth/login URL).
  3. Try to select the URL with the mouse to copy it.
  4. 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.

View original on GitHub ↗

3 Comments

rosamarmin · 2 months ago

Claude Code version: 2.1.191 (Claude Code)

Stef73000 · 2 months ago

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:

  1. Open gnome-terminal
  2. Launch claude
  3. Try to select and copy text with mouse + Ctrl+Shift+C or middle-click

Expected: 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 }

phillord · 1 month ago

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 login from a simple command line. No TUI cleverness, just stuff pushed to standard output. Then it all works.