| What it is | Rust library for interactive command-line prompts | A Rust library for building fast, lightweight, rich terminal user interfaces | Terminal access, colours and styling for Rust command-line apps | The simplest way to add colours in your terminal from Rust |
| Features | - confirmation prompts
- text and password input prompts with validation
- single and multi selection prompts
- fuzzy select prompt
- launches an editor to edit strings
- input history and custom tab completion (optional features)
| - widgets for terminal user interfaces
- cargo-generate project templates
- widget and app examples
- tutorials and API docs
| - Term type for terminal access, directly or buffered
- colours and styles with style() and reusable Style values
- colour detection from the tty, following the clicolors convention
- strip_ansi_codes and measure_text_width for formatting
- optional unicode-width dependency
| - Colour and style strings with chained methods like .red().on_blue().bold()
- True colour from RGB values, tuples or hex strings
- Bright colours, bold, italic and other styles
- Respects CLICOLOR, CLICOLOR_FORCE and NO_COLOR
- Works with format! padding and truncation
|