use hide_console::{hide_console, is_hide_console_supported};
use std::thread;
use std::time::Duration;
fn main() {
println!("This message will be visible before hiding the console");
println!("Checking console hiding support: {}",
if is_hide_console_supported() { "Supported" } else { "Not supported" });
thread::sleep(Duration::from_secs(2));
hide_console();
println!("Console is hidden!");
println!("The program will continue running for 5 more seconds...");
thread::sleep(Duration::from_secs(5));
println!("Program completed!");
}