diff --git a/src/ui.rs b/src/ui.rs index ecac2ae..ab3795d 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -50,7 +50,7 @@ impl UI { pub fn draw(&mut self) { if self.dirty { - print!("{}", self.render()); + print!("\x1b[2J\x1b[H{}", self.render()); self.dirty = false; } }