portable_pty
CommunityCross-platform PTY management
Authorjohnlindquist
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust and cross-platform solution for managing pseudo-terminals (PTYs), enabling the seamless spawning and control of shell processes across different operating systems.
Core Features & Use Cases
- Cross-Platform Compatibility: Works on macOS, Linux, and Windows.
- Process Spawning: Easily launch shell commands with custom environments and working directories.
- I/O Handling: Manages input to and output from spawned processes, with support for both blocking and non-blocking I/O patterns.
- Resize Handling: Allows dynamic resizing of the terminal dimensions, triggering SIGWINCH signals to the child process.
- Process Lifecycle Management: Provides methods to check if a process is running, wait for its completion, or forcefully kill it.
- Use Case: Integrate a terminal emulator within an application, allowing users to run shell commands directly, or automate complex command-line workflows.
Quick Start
Use the portable_pty skill to spawn a bash shell with a specific working directory and environment variables.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: portable_pty Download link: https://github.com/johnlindquist/script-kit-next/archive/main.zip#portable-pty Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.