Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Pseudoterminal
The pseudoterminal crate is a versatile pseudoterminal (PTY) implementation
designed for Rust, offering both synchronous and asynchronous capabilities. This
library provides a straightforward and efficient means to interact with child
processes via pseudoterminals. Whether you're building interactive command-line
applications, custom terminals, or automating terminal interactions,
pseudoterminal is your reliable companion.
[!WARNING]
The Asynchronous support is currently not implemented jet.
Key Features
- Cross-Platform Compatibility: Works seamlessly on both Windows (using ConPTY) and Unix-based systems (using traditional PTY), ensuring broad compatibility for your projects.
- Synchronous API: Simple blocking I/O interface for straightforward terminal interaction.
- Asynchronous Support: Optional non-blocking I/O with the
non-blockingfeature, which integrates with asynchronous programming paradigms using libraries like Tokio. - Terminal Size Control: Built-in methods for obtaining and modifying terminal dimensions, enabling dynamic terminal layout adjustments.
Getting Started
Installation
To include the pseudoterminal crate in your Rust project, simply add it as a
dependency in your Cargo.toml:
[]
= "0.1.0"
Example
Here's a basic example illustrating how to use the pseudoterminal crate to
spawn a terminal process and engage with it interactively:
use CommandExt;
use ;
use Command;
Documentation
For comprehensive documentation, including an in-depth API reference and practical usage examples, please consult the official documentation at https://docs.rs/pseudoterminal.
License
This crate is distributed under the permissive MIT License. For more details, please review the LICENSE file.