mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21:31 +11:00
Flush monitor prompt
This commit is contained in:
parent
7f2c161704
commit
d6f44a7f56
|
@ -4,7 +4,7 @@ extern crate android_glue;
|
|||
|
||||
extern crate glutin;
|
||||
|
||||
use std::io;
|
||||
use std::io::{self, Write};
|
||||
|
||||
mod support;
|
||||
|
||||
|
@ -19,6 +19,7 @@ fn main() {
|
|||
}
|
||||
|
||||
print!("Please write the number of the monitor to use: ");
|
||||
io::stdout().flush().unwrap();
|
||||
|
||||
let mut num = String::new();
|
||||
io::stdin().read_line(&mut num).unwrap();
|
||||
|
|
Loading…
Reference in a new issue