From a84670a51adf3b2e5ae402465fa0bbfae329833e Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 25 Jul 2016 04:41:19 -0700 Subject: [PATCH] Update keys.rs fix message not appearing --- examples/keys.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/keys.rs b/examples/keys.rs index 3317a5a..a67f931 100644 --- a/examples/keys.rs +++ b/examples/keys.rs @@ -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();