Trait zellij_client::os_input_output::ClientOsApi[][src]

pub trait ClientOsApi: Send + Sync {
    fn get_terminal_size_using_fd(&self, fd: RawFd) -> PositionAndSize;
fn set_raw_mode(&mut self, fd: RawFd);
fn unset_raw_mode(&self, fd: RawFd);
fn get_stdout_writer(&self) -> Box<dyn Write>;
fn read_from_stdin(&self) -> Vec<u8>;
fn box_clone(&self) -> Box<dyn ClientOsApi>;
fn send_to_server(&self, msg: ClientToServerMsg);
fn recv_from_server(&self) -> (ServerToClientMsg, ErrorContext);
fn handle_signals(&self, sigwinch_cb: Box<dyn Fn()>, quit_cb: Box<dyn Fn()>);
fn connect_to_server(&self, path: &Path);
fn load_palette(&self) -> Palette; }
Expand description

The ClientOsApi trait represents an abstract interface to the features of an operating system that Zellij client requires.

Required methods

Returns the size of the terminal associated to file descriptor fd.

Set the terminal associated to file descriptor fd to raw mode.

Set the terminal associated to file descriptor fd to cooked mode.

Returns the writer that allows writing to standard output.

Returns the raw contents of standard input.

Returns a Box pointer to this ClientOsApi struct.

Sends a message to the server.

Receives a message on client-side IPC channel

Establish a connection with the server socket.

Implementors