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

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

Implementors