diff --git a/README.md b/README.md index 9a4f5c3..5519423 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));` 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();