DEFINITION
PTY (Pseudo-Terminal)
Pseudo-Terminal
Definition
A software interface that emulates a physical terminal, allowing programs to interact with other programs as if they were being used interactively. Claude-pee uses PTY to run Claude in a terminal-like environment, capturing output and injecting input programmatically.
Examples in the Wild
- Example 1:Claude-pee wrapper running Claude in PTY
- Example 2:Terminal emulation for automation
- Example 3:Session transcript capture via jsonl