Skip to content

Commit

Permalink
hide cursor when calculating bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Dec 2, 2020
1 parent 6530843 commit 21699e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/irust/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ impl<W: std::io::Write> Printer<W> {
}
}
pub fn recalculate_bounds(&mut self, printer: PrintQueue) -> Result<(), IRustError> {
self.cursor.hide();
self.cursor.save_position();
self.cursor.goto_start();
for _ in 0..4 {
Expand Down Expand Up @@ -255,6 +256,7 @@ impl<W: std::io::Write> Printer<W> {
}
}
self.cursor.restore_position();
self.cursor.show();

Ok(())
}
Expand Down

0 comments on commit 21699e0

Please sign in to comment.