portable_pty library
Cross-platform pseudo-terminal (PTY) for Dart.
On native targets the PTY is backed by a Rust portable-pty shared
library. On web targets a browser-safe transport (WebSocket or
WebTransport) is used instead. Import this library for the
platform-resolved PortablePty API.
Classes
- PortablePty
- High-level wrapper around the native PTY library.
- PortablePtyController
- PTY session controller for native targets.
- PortablePtyTransport
- Transport contract for byte-stream PTY/terminal backends.
Mixins
- PtyListenable
- Lightweight listener mechanism for PortablePtyController.
Exceptions / Errors
- PtyException
- Exception thrown when a PTY operation fails.