diff --git a/src/backend/termion.rs b/src/backend/termion.rs index f75b2c8..d7da76f 100644 --- a/src/backend/termion.rs +++ b/src/backend/termion.rs @@ -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<()>