stevenkhan's picture
Upload spectral-pty/src/lib.rs
81568be verified
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<u32>;
}