[][src]Trait alacritty_terminal::tty::EventedPty

pub trait EventedPty: EventedReadWrite {
    fn child_event_token(&self) -> Token;
fn next_child_event(&mut self) -> Option<ChildEvent>; }

A pseudoterminal (or PTY).

This is a refinement of EventedReadWrite that also provides a channel through which we can be notified if the PTY child process does something we care about (other than writing to the TTY). In particular, this allows for race-free child exit notification on UNIX (cf. SIGCHLD).

Required methods

fn child_event_token(&self) -> Token

fn next_child_event(&mut self) -> Option<ChildEvent>

Tries to retrieve an event.

Returns Some(event) on success, or None if there are no events to retrieve.

Loading content...

Implementors

impl EventedPty for Pty[src]

Loading content...