| Crates.io | ansi-escape-sequences-cli |
| lib.rs | ansi-escape-sequences-cli |
| version | 0.2.2 |
| created_at | 2021-05-02 13:19:56.943929+00 |
| updated_at | 2025-05-19 13:07:42.042646+00 |
| description | CLI tool for generating and applying ANSI escape sequences to colorize and style terminal output — ideal for scripts, prompts, and debugging. |
| homepage | https://github.com/phip1611/ansi-escape-sequences-cli |
| repository | https://github.com/phip1611/ansi-escape-sequences-cli |
| max_upload_size | |
| id | 392193 |
| size | 26,648 |
ansi-escape-sequences-cli provides an executable called ansi which can be
used in a shell or in a shell script to easily colorize and style terminal
output.
ansi to your PATH# You need "-e" to let echo replace the escaped ESC symbol
echo -e "$(ansi yellow bold)WARNING$(ansi reset): There was a problem"
# Or use echo without "-e":
echo "$(ansi yellow bold --escape-style=direct)WARNING$(ansi reset): There was a problem"
--help for more guidance!$ cargo install ansi-escape-sequences-cli (the binary is just called ansi!)
Ths MSRV is 1.85.1.