available_colors catches first character of stdin
Created by: booger71
Calling stdout.available_colors() before stdin.keys() causes the first character of input to be lost. Using the keys.rs example,
fn main() {
let stdin = stdin();
let mut stdout = stdout().into_raw_mode().unwrap();
// Add available_color() here.
let colors = stdout.available_colors();
write!(stdout,
"{}{}q to exit. Type stuff, use alt, and so on.{}",
termion::clear::All,
termion::cursor::Goto(1, 1),
termion::cursor::Hide)
.unwrap();
stdout.flush().unwrap();
for c in stdin.keys() {
The first character typed will be lost. Full source of example attached.