pty-capture
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePTY Byte Capture
PTY Byte Capture
The orchestrator routed you here. Use these mechanics to execute your plan.
Capture the exact bytes a real terminal emits for a given keystroke. Use this when the question is "what sequence does terminal X send for key Y?" rather than "does the UI look right?"
编排器将引导你来到这里。使用这些机制来执行你的计划。
捕获真实终端针对特定按键发出的精确字节序列。当问题是“终端X按下按键Y时会发送什么序列?”而非“UI显示是否正确?”时,请使用此方法。
Platform support
平台支持
| Platform | Status | Read |
|---|---|---|
| Linux / Wayland | Implemented | platforms/linux.md |
| Windows (KVM) | Implemented | platforms/windows.md |
| macOS (QEMU) | Implemented | platforms/macos.md |
Read the platform file for your target OS. Each contains the capture architecture, prerequisites, usage pattern, and platform-specific notes.
| 平台 | 状态 | 参考文档 |
|---|---|---|
| Linux / Wayland | 已实现 | platforms/linux.md |
| Windows (KVM) | 已实现 | platforms/windows.md |
| macOS (QEMU) | 已实现 | platforms/macos.md |
请阅读目标操作系统对应的平台文件。 每个文件都包含捕获架构、先决条件、使用模式以及平台特定说明。
Known dead ends
已知无效方案
- Xvfb + xdotool: bypasses real keyboard processing entirely
- uinput + Xvfb: Xvfb does not consume kernel input devices
- SSH PTY for keystroke injection: distorts the input encoding; SSH is only for output capture or deployment
- Xvfb + xdotool:完全绕过真实键盘处理流程
- uinput + Xvfb:Xvfb 不使用内核输入设备
- SSH PTY 用于按键注入:会扭曲输入编码;SSH 仅用于输出捕获或部署
Follow-on
后续步骤
Feed captured bytes into terminal compatibility fixtures and replay tests in .
apps/cli将捕获的字节输入到 中的终端兼容性测试固件和重放测试中。
apps/cli