Fix on windows when using stderr.
This bug was introduced in #152
diff --git a/src/tty/windows.rs b/src/tty/windows.rs
index b4bf70e..7a1fc95 100644
--- a/src/tty/windows.rs
+++ b/src/tty/windows.rs
@@ -98,11 +98,7 @@
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],