Crate clt

source ·
Expand description

clt is a Rust crate for creating beautiful command line applications.

Re-exports

pub use term::Black;
pub use term::Red;
pub use term::Green;
pub use term::Yellow;
pub use term::Blue;
pub use term::Magenta;
pub use term::Cyan;
pub use term::White;

Structs

One editor for you to edit the given text or file.
Showing a progress bar. Examples:
Styles a text with ANSI styles. This styling is self contained which means that at the end of the string a reset code is issued. Examples:

Enums

Functions

Clears the terminal screen.
Prompts for confirmation (yes/no question).
Returns the current size of the terminal in the form (width, height) in columns and rows, usage example:
Check output device is a terminal or not.
Show text via an pager.
Prompts a user for input.
Styles the message with ANSI styles and println it.