node-pty
by microsoft
About
node-pty is a Node.js module providing `forkpty(3)` bindings, enabling applications to create and manage pseudoterminals. It allows forking processes and interacting with them via read and write operations through a terminal object. This library is a crucial component for building terminal emulators (like the one in VS Code) and for scenarios where programs need to behave as if they are communicating with a real terminal. It supports Linux, macOS, and Windows (via ConPTY API) and includes advanced features like flow control.
Features
- Pseudoterminal (PTY) Bindings
- Cross-platform Compatibility (Linux, macOS, Windows)
- Process Forking & I/O Interaction
- Terminal Emulator Backend
- Flow Control Support
Supported Platforms
webdesktop