Update keys.rs

fix message not appearing
This commit is contained in:
James Campos 2016-07-25 04:41:19 -07:00 committed by GitHub
parent 95bce6092a
commit a84670a51a
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ fn main() {
termion::clear::All,
termion::cursor::Goto(1, 1),
termion::cursor::Hide).unwrap();
stdout.flush().unwrap();
for c in stdin.keys() {
write!(stdout, "{}{}", termion::cursor::Goto(1, 1), termion::clear::CurrentLine).unwrap();