tenseleyflow/fackr / 510211c

Browse files

fix: hide cursor during terminal render to reduce flashing

Match the pattern of other render functions by hiding cursor at start
of render_terminal() before showing it at the positioned location.
Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
510211c0bba705419d3397cf95372720d6c2c64c
Parents
8ca272f
Tree
59ee57e

1 changed file

StatusFile+-
M src/render/screen.rs 3 0
src/render/screen.rsmodified
@@ -3714,6 +3714,9 @@ impl Screen {
37143714
 
37153715
     /// Render the integrated terminal panel
37163716
     pub fn render_terminal(&mut self, terminal: &TerminalPanel) -> Result<()> {
3717
+        // Hide cursor during render to prevent flicker
3718
+        execute!(self.stdout, Hide)?;
3719
+
37173720
         let start_row = terminal.render_start_row(self.rows);
37183721
         let height = terminal.height;
37193722