mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Flush monitor prompt
This commit is contained in:
@@ -4,7 +4,7 @@ extern crate android_glue;
|
|||||||
|
|
||||||
extern crate glutin;
|
extern crate glutin;
|
||||||
|
|
||||||
use std::io;
|
use std::io::{self, Write};
|
||||||
|
|
||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print!("Please write the number of the monitor to use: ");
|
print!("Please write the number of the monitor to use: ");
|
||||||
|
io::stdout().flush().unwrap();
|
||||||
|
|
||||||
let mut num = String::new();
|
let mut num = String::new();
|
||||||
io::stdin().read_line(&mut num).unwrap();
|
io::stdin().read_line(&mut num).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user