#ansi #formatting #macro

mansi

Simple ANSI formatting using macros!

2 stable releases

1.0.1 Dec 31, 2024
1.0.0 Dec 30, 2024

#308 in Command-line interface

Download history 157/week @ 2024-12-25 72/week @ 2025-01-01

229 downloads per month

MIT/Apache

7KB
92 lines

mansi

Usage

Palette

let world = mansi::pal!("world", mansi::C::Green);
println!("Hello, {}!", {world});
Hello, world!

SGR

let hello = mansi::sgr!("Hello", 38, 5, 230, 1, 4, 48, 5, 124);
let world = mansi::pal!("world", mansi::C::BrightBlue);
println!("{hello} {world}!");
Hello world!

No runtime deps