ansi_brush 0.0.21

ANSI Styling
Documentation

ansi_brush

ANSI Styling for Rust

Examples

use ansi_brush::Style;

fn main()  {
    println!("{} {}", "Hello,".light_cyan(), "World!".reset());
    // use conclude to stop background bleeding into next lines (try it without conclude!)
    println!("{}", "Goodbye, Mars!".red().conclude());
}

TODO

  • 8 colors
  • 16 colors
  • Macro
  • 256 colors
  • Backgrounds
  • Styling
    • Bold
    • Faint
    • Italic
    • Underline
    • Slow blink
    • Rapid Blink