From ff1ceb523dc3d211f171e9cf661d8516d108f2d0 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 21 Sep 2016 21:05:27 -0700 Subject: [PATCH] Fix refresh bug Terminal output wouldn't reliably refresh the screen. Fix is to only modify this flag when the terminal lock is held which suggests a larger refactoring should happen. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index eff7ddaa..0b72c374 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,10 +211,9 @@ fn main() { // Wait for something to happen processor.process_events(&window); - signal_flag.set(false); - // Maybe draw the terminal let terminal = terminal.lock_high(); + signal_flag.set(false); if terminal.dirty { display.draw(terminal); }