Removed unneeded writes.

This commit is contained in:
shy 2021-04-12 20:43:41 +02:00
parent b8b5f36ace
commit 1b76c98ea6

View file

@ -52,10 +52,7 @@ pub fn run(
SIGINT, SIGINT,
SIGUSR1, SIGUSR1,
SIGUSR2, SIGUSR2,
]).unwrap(); ])?;
// Clear window and hide cursor.
write!(stdout, "{}{}", clear::All, cursor::Hide)?;
// Main loop entry. // Main loop entry.
loop { loop {
@ -444,10 +441,6 @@ fn restore_after_suspend<W: Write>(stdout: &mut RawTerminal<W>)
eprintln!("Failed to re-enter raw terminal mode after suspend: {}", error); eprintln!("Failed to re-enter raw terminal mode after suspend: {}", error);
process::exit(1); process::exit(1);
}); });
write!(stdout,
"{}{}",
clear::All,
cursor::Hide)?;
Ok(()) Ok(())
} }