Update README.md
Code mistake edited
This commit is contained in:
parent
aa01eb1dab
commit
177953b183
@ -59,7 +59,7 @@ For detailed examples of all crossterm functionalities check the [examples](http
|
|||||||
// Set background Color from RGB
|
// Set background Color from RGB
|
||||||
println!("RGB (10,10,10): \t {}", paint(" ").on(Color::Rgb {r: 10, g: 10, b: 10}));
|
println!("RGB (10,10,10): \t {}", paint(" ").on(Color::Rgb {r: 10, g: 10, b: 10}));
|
||||||
// Set background Color from RGB
|
// Set background Color from RGB
|
||||||
println!("RGB (10,10,10): \t {}", paint(" ").on(Color::AnsiValue(50)));
|
println!("ANSI value (50): \t {}", paint(" ").on(Color::AnsiValue(50)));
|
||||||
|
|
||||||
// Use attributes to syle the font.
|
// Use attributes to syle the font.
|
||||||
println!("{}", paint("Normal text"));
|
println!("{}", paint("Normal text"));
|
||||||
|
Loading…
Reference in New Issue
Block a user