aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-02-21 01:01:03 +0100
committera-kenji <aks.kenji@protonmail.com>2021-02-21 01:01:03 +0100
commitb17dc6625cd644705ad3fe424fa53706dae9a682 (patch)
treef8f13ccff218211a877098c1a18cb8def59f9493 /src
parentfix(clippy): use of `unwrap_or` followed by a fn (diff)
parentfix(ux): hide cursor while rendering to prevent it from flickering around (#191) (diff)
downloadsl0ppij-b17dc6625cd644705ad3fe424fa53706dae9a682.tar.gz
sl0ppij-b17dc6625cd644705ad3fe424fa53706dae9a682.tar.xz
sl0ppij-b17dc6625cd644705ad3fe424fa53706dae9a682.zip
Merge branch 'main' of https://github.com/zellij-org/zellij
Diffstat (limited to 'src')
-rw-r--r--src/client/tab.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index a203b2ba..b4c5c00a 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());