pub fn query_osc<MS: Into<u64>>(
query: &str,
timeout_ms: MS,
) -> Result<String, XQError>
Expand description
Query the xterm interface for an OSC sequence, assuming the terminal is in raw mode (or we would block waiting for a newline).
The query should be a proper OSC sequence (ie already wrapped, eg “\x1b]11;?\x07”) as you want it to be sent to stdout but the answer is only the part after the C0 (ESC) and before the OSC terminator (BEL or ESC).