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