Struct tty::TtyServer [] [src]

pub struct TtyServer { /* fields omitted */ }

Methods

impl TtyServer
[src]

Create a new TTY with the same configuration (termios and size) as the template TTY

Bind the peer TTY with the server TTY

The sigwinch_handler must handle the SIGWINCH signal to update the TTY window size. This handler can be created with chan_signal::notify(&[Signal::WINCH]) from the chan_signal crate.

Any and all threads spawned must come after the first call to chan_signal::notify!

Get the TTY master file descriptor usable by a TtyClient

Take the TTY slave file descriptor to manually pass it to a process

Spawn a new process connected to the slave TTY

Trait Implementations

impl AsRef<Path> for TtyServer
[src]

Get the server TTY path