aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAdam Badawy <adambada@buffalo.edu>2015-10-24 21:32:46 -0400
committerAdam Badawy <adambada@buffalo.edu>2015-10-24 21:38:36 -0400
commitd6f44a7f56acf2ced22c00e8cd204c66da96c8da (patch)
treed0d1b6d3c07ba7e142f93fee2a3f457ba10b7cdb /examples
parent7f2c161704deb4a51a355bd7cc9b7f25451b569a (diff)
downloadglutin-d6f44a7f56acf2ced22c00e8cd204c66da96c8da.tar.gz
glutin-d6f44a7f56acf2ced22c00e8cd204c66da96c8da.zip
Flush monitor prompt
Diffstat (limited to 'examples')
-rw-r--r--examples/fullscreen.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs
index 977e084..aecfe62 100644
--- a/examples/fullscreen.rs
+++ b/examples/fullscreen.rs
@@ -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();