| use std::io::{Read, Write}; | |
| pub mod unix; | |
| pub mod windows; | |
| pub use unix::Pty; | |
| 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<u32>; | |
| } | |
| use std::io::{Read, Write}; | |
| pub mod unix; | |
| pub mod windows; | |
| pub use unix::Pty; | |
| 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<u32>; | |
| } | |