В общем вот код:
for c in stdin.keys() {
write!(stdout, "{}", termion::clear::CurrentLine).unwrap();
match c.unwrap(){
Key::Char('s') => {
stdout.flush().unwrap();
println!("Type path to file:\r");
let mut musicpath = stdout.write_all(b"path:").unwrap();
},
Key::Char('q') => break,
_ => {
termion::clear::CurrentLine;
print!("You entered wrong combination\r")
}
}
stdout.flush().unwrap();
}
}