Function scan_and_answer_dsr
pub(crate) fn scan_and_answer_dsr(
chunk: &[u8],
carry: &mut Vec<u8>,
master: &Mutex<impl Write>,
) -> Vec<u8> ⓘ
Expand description
Answer and strip every DSR_QUERY in the PTY output.
§Arguments
chunk - Bytes newly read from the PTY master.
carry - A query prefix held back from the previous chunk; updated here.
master - PTY master writer the reply is sent to.
§Returns
The bytes to render.