[go: up one dir, main page]

Struct tui::terminal::Terminal

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

Interface to the terminal backed by Termion

Implementations§

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

Builds a string representing the minimal escape sequences and characters set necessary to update the UI and writes it to stdout.

Updates the interface so that internal buffers matches the current size of the terminal. This leads to a full redraw of the screen.

Flushes the current internal state and prepares the interface for the next draw call

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.