pub struct Terminal<B> where
    B: Backend
{ /* private fields */ }
Expand description

Interface to the terminal backed by Termion

Implementations

Wrapper around Terminal initialization. Each buffer is initialized with a blank string and default colors for the foreground and the background

UNSTABLE

Get a Frame object which provides a consistent view into the terminal state for rendering.

Obtains a difference between the previous and the current buffer and passes it to the current backend for drawing.

Updates the Terminal so that internal buffers match the requested size. Requested size will be saved so the size can remain consistent when rendering. This leads to a full clear of the screen.

Queries the backend for size and resizes if it doesn’t match the previous size.

Synchronizes terminal size, calls the rendering closure, flushes the current internal state and prepares for the next draw call.

Clear the terminal and force a full redraw on the next draw call.

Queries the real size of the backend.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.