From 1b76c98ea692042f0676503e2142965526ec8588 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 12 Apr 2021 20:43:41 +0200 Subject: [PATCH] Removed unneeded writes. --- src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f4bb08a..106ee9e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,10 +52,7 @@ pub fn run( SIGINT, SIGUSR1, SIGUSR2, - ]).unwrap(); - - // Clear window and hide cursor. - write!(stdout, "{}{}", clear::All, cursor::Hide)?; + ])?; // Main loop entry. loop { @@ -444,10 +441,6 @@ fn restore_after_suspend(stdout: &mut RawTerminal) eprintln!("Failed to re-enter raw terminal mode after suspend: {}", error); process::exit(1); }); - write!(stdout, - "{}{}", - clear::All, - cursor::Hide)?; Ok(()) }