8 releases

Uses old Rust 2015

0.5.0 Oct 16, 2016
0.4.5 Oct 1, 2016
0.4.4 Aug 6, 2016
0.4.3 Mar 27, 2016
0.2.0 Aug 9, 2015

#22 in #linux-terminal


Used in stemjail

LGPL-3.0

19KB
280 lines

tty-rs

tty is a thread-safe library to create and use a new pseudoterminal (PTY):

  • TtyServer: create a PTY dedicated to a new command
  • TtyClient: 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.

Dependencies

~0.7–0.9MB
~13K SLoC