From 7290086fe90cf8bafb22a30e2af86e54586efc4d Mon Sep 17 00:00:00 2001 From: scauligi Date: Wed, 13 Feb 2019 01:02:31 -0800 Subject: [PATCH] forgot to flush --- src/backend/termion.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/termion.rs b/src/backend/termion.rs index f75b2c8b..d7da76fc 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<()>