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§
- Editor
- One editor for you to edit the given text or file.
- Progress
Bar - Showing a progress bar. Examples:
- Style
- 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§
- clear
- Clears the terminal screen.
- confirm
- Prompts for confirmation (yes/no question).
- get_
terminal_ size - Returns the current size of the terminal in the form
(width, height)
in columns and rows, usage example: - isatty
- Check output device is a terminal or not.
- print_
via_ pager - Show text via an pager.
- prompt
- Prompts a user for input.
- sprintln
- Styles the message with ANSI styles and println it.