Skip to content
Snippets Groups Projects
Commit e77e30b3 authored by Andrew Chin's avatar Andrew Chin
Browse files

Fix on windows when using stderr.

This bug was introduced in #152
parent d819d844
No related branches found
No related tags found
No related merge requests found
......@@ -98,11 +98,7 @@ pub struct ConsoleRawReader {
impl ConsoleRawReader {
pub fn new(stream: OutputStreamType) -> Result<ConsoleRawReader> {
let handle = try!(get_std_handle(if stream == OutputStreamType::Stdout {
STDIN_FILENO
} else {
STDERR_FILENO
}));
let handle = try!(get_std_handle(STDIN_FILENO));
Ok(ConsoleRawReader {
handle,
buf: [0; 2],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment