termcolor2 0.1.1

A simple cross platform library for writing colored text to a terminal. (fork of termcolor)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::str::FromStr;

use termcolor2::{self, Color};

fn main() {
    let color = Color::from_str("#89b4fa");
    let color_rgb = Color::from_str("rgb(75% 180 250)");

    println!("{:?}", color);
    println!("{:?}", color_rgb);
}