aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-01-12 09:47:44 +0900
committernsfisis <nsfisis@gmail.com>2025-01-12 09:47:44 +0900
commita3bbc3c793e45cf0579477dcf6ca03e07d94fec4 (patch)
tree66bb4daea63d0daac75ec46cd28538cc40e2507b /src
parent73520dcfd4839170c69644f031573608af340911 (diff)
downloadturbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.tar.gz
turbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.tar.zst
turbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.zip
hide cursor
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 8606420..71408ae 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -76,9 +76,10 @@ fn render(mut stdout: impl Write, school_of_fish: &Vec<Turbofish>, columns: u16)
}
fn main() {
+ let mut rng = thread_rng();
let mut stdin = async_stdin().bytes();
let mut stdout = stdout().into_raw_mode().unwrap();
- let mut rng = thread_rng();
+ let mut stdout = termion::cursor::HideCursor::from(stdout);
let (columns, lines) = terminal_size().unwrap();