Fix "red" color in example simple.rs

This commit is contained in:
Peter Roehlen 2020-07-18 02:47:46 +00:00
parent 189222555e
commit e0263cbc81
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ fn main() {
// Clear the screen
b'c' => write!(stdout, "{}", termion::clear::All),
// Set red color
b'r' => write!(stdout, "{}", color::Fg(color::Rgb(5, 0, 0))),
b'r' => write!(stdout, "{}", color::Fg(color::Rgb(255, 0, 0))),
// Write it to stdout.
a => write!(stdout, "{}", a),
}