From c1e2b64aa47099bc89e95807f10f412bb0fa4c78 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Mon, 25 Mar 2024 03:06:43 +0800 Subject: [PATCH] pause for windows --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 90d068f..cecd287 100644 --- a/src/main.rs +++ b/src/main.rs @@ -182,7 +182,7 @@ fn show_random_pokemon( Ok(()) } -// #[cfg(target_os = "windows")] +#[cfg(target_os = "windows")] fn pause() { use std::io::{self, Read, Write}; let mut stdout = io::stdout(); @@ -193,10 +193,10 @@ fn pause() { stdin.read(&mut [0]).unwrap(); } -// #[cfg(not(target_os = "windows"))] -// fn pause() { -// // do literally nothing -// } +#[cfg(not(target_os = "windows"))] +fn pause() { + // do literally nothing +} fn main() { // validate files first