What problem does it solve?
This skill solves the critical problem of determining the exact byte sequences that real terminal emulators emit for specific keystrokes, eliminating unreliable guesswork from emulated input paths or distorted encoding that leads to incorrect terminal compatibility and input handling bugs.
Core Features & Use Cases
- Multi-Platform Ground-Truth Capture: Provides platform-specific workflows for Linux/Wayland, Windows (KVM), and macOS (QEMU) to capture lossless byte output from real terminal emulators like Ghostty, Kitty, Alacritty, and Terminal.app.
- Avoids Common Capture Dead Ends: Explicitly documents and avoids unreliable methods like Xvfb + xdotool, uinput + Xvfb, and SSH PTY keystroke injection that bypass real keyboard processing or distort input encoding.
- Use Case: For example, when developing a terminal emulator or a CLI tool that needs to handle special key combos like Shift+Enter or Ctrl+L correctly, use this skill to capture the exact byte sequences from target terminals to build accurate compatibility fixtures and replay tests.
Quick Start
Use the pty-capture skill to capture the exact byte sequence emitted by the Ghostty terminal when the Shift+Enter key combo is pressed on a Linux/Wayland system.