| What it is | Cross-platform terminal manipulation for Rust, on Unix and Windows | Terminal access, colours and styling for Rust command-line apps | The simplest way to add colours in your terminal from Rust | A Rust library for building fast, lightweight, rich terminal user interfaces |
| Features | - works on Unix and Windows terminals
- cursor movement, position, hiding and blinking
- 16, 256 and RGB colours and text attributes
- raw mode, alternate screen, clearing, scrolling and terminal size
- keyboard, mouse and resize events, with an optional futures Stream
| - 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
| - widgets for terminal user interfaces
- cargo-generate project templates
- widget and app examples
- tutorials and API docs
|