# console

> Terminal access, colours and styling for Rust command-line apps

Source: https://talira.ai/catalog/console-jd4f55wc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / terminal ui](https://talira.ai/categories/libraries/terminal-ui), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [CLICOLOR](https://talira.ai/standards/clicolors.md)[^2]
- Backed by: [console-rs](https://talira.ai/orgs/console-rs.md)

console is a Rust library from the console-rs family for building nicer command-line interfaces: a `Term` type for reading from and writing to the terminal (clearing lines, moving the cursor, buffered output), text colours and styles that turn themselves on or off by whether output is a terminal, following the clicolors convention, and helpers to strip ANSI codes and measure how wide text displays. It pairs with [indicatif](https://talira.ai/catalog/indicatif-m4kdbaq2.md) and dialoguer from the same family.

## Links

- GitHub: https://github.com/console-rs/console
- Docs: https://docs.rs/console/

## Problems it solves

- colour and style text in my Rust CLI only when output goes to a terminal
- clear lines and move the cursor in a Rust terminal app
- measure how wide a string with ANSI colour codes displays in the terminal

## Features

- 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

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.69, adoption 0.62, momentum 0.32, community 0.79, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 14 commits in the last 90 days
- latest release 0.16.6 2 months ago
- 1.2k GitHub stars
- 93 contributors
- accepts sponsorship (Github, Patreon)
- backed by console-rs

## Related

- Works with [indicatif](https://talira.ai/catalog/indicatif-m4kdbaq2.md)

## Alternatives

- [colored](https://talira.ai/catalog/colored-n7y9z8yd.md): The simplest way to add colours in your terminal from Rust
- [crossterm](https://talira.ai/catalog/crossterm-cgz7pyzx.md): Cross-platform terminal manipulation for Rust, on Unix and Windows
- [indicatif](https://talira.ai/catalog/indicatif-m4kdbaq2.md): Progress bars and spinners for Rust command-line apps

## Sources

[^1]: https://github.com/console-rs/console/blob/main/LICENSE (checked 28 Nov 2026)
[^2]: https://docs.rs/console/latest/console/fn.colors_enabled.html (checked 28 Nov 2026)
