[][src]Trait portable_pty::MasterPty

pub trait MasterPty: Write {
    fn resize(&self, size: PtySize) -> Result<(), Error>;
fn get_size(&self) -> Result<PtySize, Error>;
fn try_clone_reader(&self) -> Result<Box<dyn Read + Send>, Error>; }

Represents the master/control end of the pty

Required methods

fn resize(&self, size: PtySize) -> Result<(), Error>

Inform the kernel and thus the child process that the window resized. It will update the winsize information maintained by the kernel, and generate a signal for the child to notice and update its state.

fn get_size(&self) -> Result<PtySize, Error>

Retrieves the size of the pty as known by the kernel

fn try_clone_reader(&self) -> Result<Box<dyn Read + Send>, Error>

Obtain a readable handle; output from the slave(s) is readable via this stream.

Loading content...

Implementors

impl MasterPty for ConPtyMasterPty[src]

impl MasterPty for WinPtyMasterPty[src]

Loading content...