summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-14 16:07:17 +0200
committermo8it <mo8it@proton.me>2024-04-14 16:07:17 +0200
commitbd10b154fe558af693e9f8f57dbb3e43f0bd0ec8 (patch)
tree9ffbe1124c6af272664afcfd6b57af8c59d073c2 /src/main.rs
parent070a780d7f7ca4ef03ab29898ec553933994bfab (diff)
Clear the terminal after showing the welcome message
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index aeb9432..6796921 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -92,6 +92,8 @@ fn main() -> Result<()> {
stdout.flush()?;
io::stdin().lock().read_until(b'\n', &mut Vec::new())?;
+
+ stdout.execute(Clear(ClearType::All))?;
}
StateFileStatus::Read => (),
}