INNER CODE UNIT · Rust

tty_name

psmux/psmux · crates/portable-pty-psmux/src/lib.rs:127

    fn tty_name(&self) -> Option<std::path::PathBuf>;

    /// If applicable to the type of the tty, return the termios
    /// associated with the stream
    #[cfg(unix)]
    fn get_termios(&self) -> Option<nix::sys::termios::Termios> {
        None
    }
}
impl_downcast!(MasterPty);

#[cfg(all(test, not(windows)))]
mod tests {
    use super::*;

    #[test]
    fn non_conpty_master_reports_no_passthrough_mode() {
        let pair = native_pty_system().openpty(PtySize::default()).unwrap();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…