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

#5 in #linux-terminal

Download history 31/week @ 2023-10-28 15/week @ 2023-11-04 20/week @ 2023-11-11 17/week @ 2023-11-18 34/week @ 2023-11-25 16/week @ 2023-12-02 11/week @ 2023-12-09 21/week @ 2023-12-16 27/week @ 2023-12-23 18/week @ 2023-12-30 19/week @ 2024-01-06 22/week @ 2024-01-13 28/week @ 2024-01-20 26/week @ 2024-01-27 8/week @ 2024-02-03 50/week @ 2024-02-10

124 downloads per month
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.6–0.9MB
~12K SLoC