2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-10 13:10:54 +00:00

clear screen

This commit is contained in:
dvkt 2019-12-16 21:34:36 -08:00
parent 23c94414b5
commit f8c1f83dab

View File

@ -50,7 +50,7 @@ impl UI {
pub fn draw(&mut self) { pub fn draw(&mut self) {
if self.dirty { if self.dirty {
print!("{}", self.render()); print!("\x1b[2J\x1b[H{}", self.render());
self.dirty = false; self.dirty = false;
} }
} }