Struct zui_widgets::terminal::Terminal [−][src]
pub struct Terminal<B> where
B: Backend, { /* fields omitted */ }
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.