Struct tui::terminal::Terminal [] [src]

pub struct Terminal<B> where
    B: Backend
{ /* fields omitted */ }

Interface to the terminal backed by Termion

Methods

impl<B> Terminal<B> where
    B: Backend
[src]

[src]

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

[src]

[src]

[src]

Check if we have already computed a layout for a given group, otherwise it creates one and add it to the layout cache. Moreover the function marks the queried entries so that we can clean outdated ones at the end of the draw call.

[src]

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

[src]

Calls the draw method of a given widget on the current buffer

[src]

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

[src]

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

[src]

[src]

[src]

[src]

Trait Implementations

impl<B: Debug> Debug for Terminal<B> where
    B: Backend
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<B> Send for Terminal<B> where
    B: Send

impl<B> Sync for Terminal<B> where
    B: Sync