From ac9b196675723022ff8c863a7b2e65f52dbca9ee Mon Sep 17 00:00:00 2001 From: Tal <83217276+talwat@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:41:01 +0200 Subject: [PATCH] chore: bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/player/ui.rs | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 35b05d2..8fde89b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1312,7 +1312,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "lowfi" -version = "1.4.2" +version = "1.5.0" dependencies = [ "Inflector", "arc-swap", diff --git a/Cargo.toml b/Cargo.toml index d9b5be1..8798308 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lowfi" -version = "1.4.2" +version = "1.5.0" edition = "2021" description = "An extremely simple lofi player." license = "MIT" diff --git a/src/player/ui.rs b/src/player/ui.rs index dc92af8..39f6d4f 100644 --- a/src/player/ui.rs +++ b/src/player/ui.rs @@ -113,6 +113,8 @@ async fn input(sender: Sender) -> eyre::Result<()> { /// `volume_timer` is a bit strange, but it tracks how long the `volume` bar /// has been displayed for, so that it's only displayed for a certain amount of frames. async fn interface(player: Arc, minimalist: bool) -> eyre::Result<()> { + let mut stdout = std::io::stdout(); + loop { let action = components::action(&player, WIDTH); @@ -146,7 +148,7 @@ async fn interface(player: Arc, minimalist: bool) -> eyre::Result<()> { .collect(); crossterm::execute!( - stdout(), + stdout, Clear(ClearType::FromCursorDown), MoveToColumn(0), Print(format!("┌{}┐\r\n", "─".repeat(WIDTH + 2))),