[][src]Trait unsegen_terminal::SlaveInputSink

pub trait SlaveInputSink: Send {
    pub fn receive_bytes_from_pty(&mut self, data: Box<[u8]>);
}

Implement this trait by forwarding all received bytes to your main loop (somehow, for example using using chan). Then, in the main loop call Terminal::add_byte_input and update the screen.

(This is not as elegant as it could be and is subject to change in future versions. Support for Futures is planned once they are stable.)

Required methods

pub fn receive_bytes_from_pty(&mut self, data: Box<[u8]>)[src]

Loading content...

Implementors

Loading content...