pub struct SuperConsole { /* private fields */ }
Expand description

Handles rendering the console using the user-defined Components and emitted messages. A Canvas area at the bottom of the terminal is re-rendered in place at each tick for the components, while a log area of emitted messages is produced above. Producing output from sources other than SuperConsole while break the TUI.

Implementations

Build a new SuperConsole with a root component.

Force a new SuperConsole to be built with a root component, regardless of whether the tty is compatible

Render at a given tick. Draws all components and drains the emitted events buffer. This will produce any pending emitting events above the Canvas and will re-render the drawing area.

Perform a final render. This time, each component will have a chance to finalize themselves before the terminal is disposed of.

Convenience method:

  • Calls queue_emit to add the lines.
  • Next, re-renders the superconsole.

Because this re-renders the console, it requires passed state. Overuse of this method can cause superconsole to use significant CPU.

Queues the passed lines to be drawn on the next render. The lines will not appear until the next render is called.

Clears the canvas portion of the superconsole.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Get an ARef pointing at this type.

Try and get an ARef pointing at this type. Returns an Err if the type Self is a RefCell which is already mutably borrowed. Read more

Return the underlying RefCell if Self is one, otherwise None.

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.

Should always be Self

Convert between two equal types.

Convert between references to two equal types.

Convert between mutable references to two equal types.

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.