diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-02-18 16:47:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-18 16:47:37 +0100 |
| commit | db26f849ff3ae85580693bb95a2657385d0b1d18 (patch) | |
| tree | 1887577e6cd61c8f298a62497f2cc39c143cd220 /src | |
| parent | fix(compatibility): do not forward tabs to the terminal (#190) (diff) | |
| download | sl0ppij-db26f849ff3ae85580693bb95a2657385d0b1d18.tar.gz sl0ppij-db26f849ff3ae85580693bb95a2657385d0b1d18.tar.xz sl0ppij-db26f849ff3ae85580693bb95a2657385d0b1d18.zip | |
fix(ux): hide cursor while rendering to prevent it from flickering around (#191)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/tab.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs index 174948c1..8e8bffe0 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -606,6 +606,10 @@ impl Tab { self.full_screen_ws.columns as u16, self.full_screen_ws.rows as u16, ); + let hide_cursor = "\u{1b}[?25l"; + stdout + .write_all(&hide_cursor.as_bytes()) + .expect("cannot write to stdout"); for (kind, terminal) in self.panes.iter_mut() { if !self.panes_to_hide.contains(&terminal.pid()) { boundaries.add_rect(terminal.as_ref()); |
