Crates.io | tty |
lib.rs | tty |
version | 0.5.0 |
source | src |
created_at | 2015-08-09 22:32:10.081015 |
updated_at | 2016-10-16 15:16:50.056579 |
description | Create and use pseudoterminal |
homepage | https://stemjail.github.io |
repository | https://github.com/stemjail/tty-rs |
max_upload_size | |
id | 2808 |
size | 59,436 |
tty is a thread-safe library to create and use a new pseudoterminal (PTY):
TtyServer
: create a PTY dedicated to a new commandTtyClient
: forward I/O from an existing TTY (user terminal)The I/O forward uses splice(2)
, which is Linux specific, enabling zero-copy transfers.
You need to use a nightly Rust channel >= 1.8.0-dev to build this crate (because of unstable API use).
This library is a work in progress. The API may change.