APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI
APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI is a Claude Code subagent routing Linux terminal copy events into interactive TUIs. Activates during alt-screen sessions without grid selections.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.mdWhat APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI does
This subagent routes Linux copy shortcuts directly into fullscreen terminal applications. Terminal emulators intercept Ctrl+Shift+C, but fail to copy when text is selected strictly within the TUI internal memory rather than the emulator grid. The fix appends a fallback checking for an active alternate screen, sending byte 0x03 (ETX) to the PTY so the foreground program can handle its internal copy action.
The logic executes on Linux environments while ignoring plain shell sessions to prevent triggering an accidental SIGINT. Native terminal selections take precedence, copying directly to the system clipboard without touching the PTY stream. If an AI worker controls the active terminal block, safety guards silence PTY writing immediately.
What it helps with
- pass
Ctrl+Shift+Cinto TUI processes with internal text selections - fix swallowed copy shortcuts across Warp on Linux desktops
- avoid accidental
SIGINTsignals on standard shell prompts - keep native terminal grid and block selections functioning as usual
Example prompts for the agent
- Implement the APP-4896 spec to forward Ctrl+Shift+C to PTY in fullscreen TUI
- Update copy() in view.rs to send ETX when alt-screen is active
- Ensure Ctrl+Shift+C acts as a no-op on normal screens without selection
How to install APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI
Manually: put the files in place
.claude/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI
How to install APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI in Claude Code?
Place the subagent definition file at .claude/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.md inside your repository.
What does APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI do?
It instructs the terminal to write byte 0x03 into the PTY whenever Linux users trigger copy inside alternate-screen programs lacking emulator selections.
What is required for APP-4896 - forward Ctrl+Shift+C to PTY in fullscreen TUI to work?
It requires a Linux desktop environment running the Warp terminal codebase alongside alt-screen terminal tools.