Crate requestty_ui[][src]

Expand description

A widget based terminal ui rendering library.

This crate provides an abstraction over terminal manipulation in the form of the Widget trait. It also provides some default widgets available in widgets.

While this crate was built for the requestty crate and other crates which implement the Prompt trait in requestty, it can be used otherwise as well.

Backends

This crate currently supports 2 backends:

The different backends can be enabled using the features of the same name.

Re-exports

pub use widgets::Widget;

Modules

A module to represent a terminal and operations on it.

A module for handling key events

A module to describe regions of the screen that can be rendered to.

A module to control the looks of text.

Some characters used in the requestty crate.

A module containing the in-built widgets and types required by them

Macros

A testing utility to assert visual equality with TestBackend.

Structs

A ui runner which implements the render cycle.

Enums

The errors that can occur in requestty.

The state of a prompt on validation.

Traits

This trait should be implemented by all ‘root’ widgets.

Type Definitions

The requestty result type.