ansi-hex-color
anti-hex-color
is a Rust library which color (ANSI 256-color) the given text in terminal.
Since you can specify the color with hex code, you can easily color it like CSS.
Install
in Cargo.toml
[]
= "0.1.1"
Usage
use ansi_hex_color;
Default style
If you put "" or a string other than hex code
in the first and second arguments, the text will be default style(white text, no background).
let colored_txt = colored;