From 70a98b63a749e143ab68a98419ea66bcbbdf5e0d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 16 Feb 2019 15:15:51 -0800 Subject: [PATCH] more stubs for win pty --- src/winpty.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 {