diff --git a/src/winpty.rs b/src/winpty.rs index 8fb2770dc..57c0a1acf 100644 --- a/src/winpty.rs +++ b/src/winpty.rs @@ -1,4 +1,5 @@ use failure::Error; +use std::io; use std::process::{Child, Command}; pub struct MasterPty {} @@ -24,6 +25,29 @@ impl MasterPty { pub fn get_size(&self) -> Result { bail!("MasterPty::get_size not implemented") } + + pub fn try_clone(&self) -> Result { + bail!("MasterPty::try_clone not implemented") + } + + pub fn clear_nonblocking(&self) -> Result<(), Error> { + unimplemented!(); + } +} + +impl io::Write for MasterPty { + fn write(&mut self, buf: &[u8]) -> Result { + unimplemented!(); + } + fn flush(&mut self) -> Result<(), io::Error> { + Ok(()) + } +} + +impl io::Read for MasterPty { + fn read(&mut self, buf: &mut [u8]) -> Result { + unimplemented!(); + } } impl SlavePty {