forgot to flush

This commit is contained in:
scauligi 2019-02-13 01:02:31 -08:00 committed by Florian Dehau
parent bca920bea0
commit 7290086fe9

View file

@ -66,7 +66,8 @@ where
/// Sets cursor position (0-based index)
fn set_cursor(&mut self, x: u16, y: u16) -> io::Result<()> {
write!(self.stdout, "{}", termion::cursor::Goto(x + 1, y + 1))
write!(self.stdout, "{}", termion::cursor::Goto(x + 1, y + 1))?;
self.stdout.flush()
}
fn draw<'a, I>(&mut self, content: I) -> io::Result<()>