pause for windows
This commit is contained in:
parent
cc40d4dd3b
commit
c1e2b64aa4
10
src/main.rs
10
src/main.rs
|
@ -182,7 +182,7 @@ fn show_random_pokemon(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
fn pause() {
|
fn pause() {
|
||||||
use std::io::{self, Read, Write};
|
use std::io::{self, Read, Write};
|
||||||
let mut stdout = io::stdout();
|
let mut stdout = io::stdout();
|
||||||
|
@ -193,10 +193,10 @@ fn pause() {
|
||||||
stdin.read(&mut [0]).unwrap();
|
stdin.read(&mut [0]).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
// fn pause() {
|
fn pause() {
|
||||||
// // do literally nothing
|
// do literally nothing
|
||||||
// }
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// validate files first
|
// validate files first
|
||||||
|
|
Loading…
Reference in a new issue