Struct prototty_unix::Context [] [src]

pub struct Context { /* fields omitted */ }

An interface to a terminal for rendering Views, and getting input.

Methods

impl Context
[src]

[src]

Initialise a new context using the current terminal.

[src]

[src]

Gets an input event from the terminal if one is present, returning immediately.

[src]

Gets an input event from the terminal, waiting until an event occurs.

[src]

Gets an input event from the terminal, waiting until either an event occurs, or the timeout expires, in which case this method returns None.

Trait Implementations

impl Renderer for Context
[src]

[src]

[src]

[src]