From a84670a51adf3b2e5ae402465fa0bbfae329833e Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 25 Jul 2016 04:41:19 -0700 Subject: [PATCH 1/2] 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(); From 3c123df1febb7a768add9ecdb2baf733c5a5c9a0 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 27 Jul 2016 20:42:59 +0200 Subject: [PATCH 2/2] Add migration path for TermRead (#38) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a34bcd6..e0c1384 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ version of Termion. | 0.1.0 | 1.0.0 |--------------------------------|--------------------------- | `use termion::IntoRawMode` | `use termion::raw::IntoRawMode` +| `use termion::TermRead` | `use termion::input::TermRead` | `stdout.color(color::Red);` | `write!(stdout, "{}", color::Fg(color::Red));` | `stdout.color_bg(color::Red);` | `write!(stdout, "{}", color::Bg(color::Red));` | `stdout.goto(x, y);` | `write!(stdout, "{}", cursor::Goto(x, y));`