Stilo
A small library for stylizing terminal text with ANSI color codes, with ergonomic macros.
Usage
Add stilo = "0.2.0" to your Cargo.toml dependencies
stylize!
Creates a Style struct and formats text.
use stylize;
// Red
println!;
// Red, italic, and bold
println!;
// Default color, italic and bold
println!;
// Format string
let world = "World!";
println!;
stylize_many!
Stylize many strings individually, and concatenate.
use stylize_many;
let world = "World!";
println!;
style!
Creates a Style struct, without formatting text.
// Red
let style = style!;
println!;
// Red, italic, and bold
let style = style!;
println!;
// Default color, italic and bold
let style = style!;
println!;