bright

Crates.io LICENSE

preview

Beautiful terminal color

Install

Add this in your Cargo.toml:

toml [dependencies] bright = "*"

Usage

```rust use bright::*; use std::io::{stdout, Write};

fn main() { println!("{}", "Hello world".bold().red().bg_green());

// stdout
let ansi = Bright::new("Hello world").red().to_string();
stdout().write(ansi.as_bytes());

} ```

Styles

Modifiers

Colors

Background colors