# 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.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/app-4896-forward-ctrlshiftc-to-pty-in-fullscreen-tui

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/APP-4896---forward-Ctrl-Shift-C-to-PTY-in-fullscreen-TUI.md` — Cursor also reads .claude/agents/

## When to use it
- pass `Ctrl+Shift+C` into TUI processes with internal text selections
- fix swallowed copy shortcuts across Warp on Linux desktops
- avoid accidental `SIGINT` signals on standard shell prompts
- keep native terminal grid and block selections functioning as usual

## Example prompts
- 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

## Similar
- [ratatui-tui](https://affpapa.org/en/nevibecode/skills/ratatui-tui.md) — skill · 959 installs
- [pty-mcp](https://affpapa.org/en/nevibecode/mcp/pty-mcp.md) — MCP server · ★ 20 repo stars
- [control-cli](https://affpapa.org/en/nevibecode/skills/control-cli.md) — skill · 2700 installs
- [terminal-control](https://affpapa.org/en/nevibecode/skills/terminal-control.md) — skill · 628 installs
- [SmartCLI — drive terminal TUIs](https://affpapa.org/en/nevibecode/mcp/smartcli-drive-terminal-tuis.md) — MCP server · ★ 5 repo stars
- [tui-design](https://affpapa.org/en/nevibecode/skills/tui-design.md) — skill · 1400 installs

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
