From 21699e0cef293f5fe03307c64dfeac3d9c75e01b Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Wed, 2 Dec 2020 09:19:43 +0100 Subject: [PATCH] hide cursor when calculating bounds --- src/irust/printer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/irust/printer.rs b/src/irust/printer.rs index 5fe111e3..4195f8db 100644 --- a/src/irust/printer.rs +++ b/src/irust/printer.rs @@ -225,6 +225,7 @@ impl Printer { } } 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 { @@ -255,6 +256,7 @@ impl Printer { } } self.cursor.restore_position(); + self.cursor.show(); Ok(()) }