adapt_msg_ch_to_pty

Function adapt_msg_ch_to_pty 

Source
pub async fn adapt_msg_ch_to_pty(
    output_ch: Receiver<Vec<u8>>,
    osc_esc: &str,
    output: impl Write,
) -> Result<(), String>
Expand description

Read messages from a channel and write them as OSC-escaped sequences to a PTY.

Each message is wrapped in the appropriate OSC escape sequence.