#ansi-escapes #ansi-term #vt100

app ansi-escape-sequences-cli

A CLI utility installed as "ansi" to quickly get ANSI escape sequences. Supports the most basic ones, like colors and styles as bold or italic.

6 releases

Uses new Rust 2024

new 0.2.1 May 13, 2025
0.2.0 May 11, 2025
0.1.4 May 2, 2021

#266 in Command line utilities

Download history 4/week @ 2025-02-25 1/week @ 2025-03-04 65/week @ 2025-05-06

65 downloads per month

MIT license

12KB
121 lines

'ansi' - a CLI utility to quickly get ANSI escape codes

This Rust project called ansi-escape-sequences-cli provides an executable called ansi which can be used on the Terminal to easily colorize/style your output.

Usage

  • Add ansi to your PATH
  • Embed it in your shell scripts like this:
    echo "$(ansi yellow bold)WARNING$(ansi reset): There was a problem"
    
  • Type --help for more guidance!

Install

$ cargo install ansi-escape-sequences-cli (the binary is just called ansi!)

MSRV

Ths MSRV is 1.85.1.

Dependencies

~3–12MB
~157K SLoC