diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-01-12 09:47:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-01-12 09:47:44 +0900 |
| commit | a3bbc3c793e45cf0579477dcf6ca03e07d94fec4 (patch) | |
| tree | 66bb4daea63d0daac75ec46cd28538cc40e2507b /src/main.rs | |
| parent | 73520dcfd4839170c69644f031573608af340911 (diff) | |
| download | turbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.tar.gz turbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.tar.zst turbofish-aquarium-a3bbc3c793e45cf0579477dcf6ca03e07d94fec4.zip | |
hide cursor
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
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(); |
