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.
This commit is contained in:
parent
969b9005f5
commit
ff1ceb523d
|
@ -211,10 +211,9 @@ fn main() {
|
||||||
// Wait for something to happen
|
// Wait for something to happen
|
||||||
processor.process_events(&window);
|
processor.process_events(&window);
|
||||||
|
|
||||||
signal_flag.set(false);
|
|
||||||
|
|
||||||
// Maybe draw the terminal
|
// Maybe draw the terminal
|
||||||
let terminal = terminal.lock_high();
|
let terminal = terminal.lock_high();
|
||||||
|
signal_flag.set(false);
|
||||||
if terminal.dirty {
|
if terminal.dirty {
|
||||||
display.draw(terminal);
|
display.draw(terminal);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue