Changed colors in example file. (#61)

This commit is contained in:
Jezza 2018-12-17 09:19:56 +00:00 committed by Timon
parent 0f4ef6faec
commit e0136891e7

View File

@ -14,12 +14,12 @@ extern crate crossterm;
//mod some_types; //mod some_types;
//mod terminal; //mod terminal;
use crossterm::style::{style, Color, Attribute}; use crossterm::style::{style, Color};
fn main() { fn main() {
let styled_object = style("'Red' text on 'White' background") let styled_object = style("'Red' text on 'White' background")
.with(Color::Rgb { r: 34, g: 80, b: 23 }) .with(Color::Rgb { r: 0xFF, g: 0, b: 0 })
.on(Color::Rgb { r: 34, g: 80, b: 23 }); .on(Color::Rgb { r: 0xFF, g: 0xFF, b: 0xFF });
println!("{}", styled_object); println!("{}", styled_object);
} }