[][src]Trait portable_pty::PtySystem

pub trait PtySystem {
    fn openpty(
        &self,
        size: PtySize
    ) -> Result<(Box<dyn MasterPty>, Box<dyn SlavePty>), Error>; }

The PtySystem trait allows an application to work with multiple possible Pty implementations at runtime. This is important on Windows systems which have a variety of implementations.

Required methods

fn openpty(
    &self,
    size: PtySize
) -> Result<(Box<dyn MasterPty>, Box<dyn SlavePty>), Error>

Create a new Pty instance with the window size set to the specified dimensions. Returns a (master, slave) Pty pair. The master side is used to drive the slave side.

Loading content...

Implementors

impl PtySystem for ConPtySystem[src]

impl PtySystem for WinPtySystem[src]

Loading content...