use std::io::{Read, Write}; #[cfg(unix)] pub mod unix; #[cfg(windows)] pub mod windows; #[cfg(unix)] pub use unix::Pty; #[cfg(windows)] pub use windows::Pty; pub trait PtyTrait: Read + Write + Send { fn resize(&mut self, cols: u16, rows: u16) -> std::io::Result<()>; fn pid(&self) -> Option; }