1 2 3 4 5 6 7 8 9
use std::io::{stdout, Write}; #[allow(dead_code)] pub fn cleanup_terminal() { // Show cursor and move to next line let mut stdout = stdout().lock(); let _ = writeln!(stdout, "\x1B[?25h"); let _ = stdout.flush(); }