Changed colors in example file. (#61)
This commit is contained in:
parent
0f4ef6faec
commit
e0136891e7
@ -14,12 +14,12 @@ extern crate crossterm;
|
||||
//mod some_types;
|
||||
//mod terminal;
|
||||
|
||||
use crossterm::style::{style, Color, Attribute};
|
||||
use crossterm::style::{style, Color};
|
||||
|
||||
fn main() {
|
||||
let styled_object = style("'Red' text on 'White' background")
|
||||
.with(Color::Rgb { r: 34, g: 80, b: 23 })
|
||||
.on(Color::Rgb { r: 34, g: 80, b: 23 });
|
||||
.with(Color::Rgb { r: 0xFF, g: 0, b: 0 })
|
||||
.on(Color::Rgb { r: 0xFF, g: 0xFF, b: 0xFF });
|
||||
|
||||
println!("{}", styled_object);
|
||||
}
|
Loading…
Reference in New Issue
Block a user