Skip to main content

encode_report

Function encode_report 

Source
pub fn encode_report(
    id: &str,
    state: ProgramState,
    kind: Option<InteractionKind>,
    progress: Option<u8>,
    title: &str,
    message: &str,
) -> Result<String>
Expand description

Encode a complete replacement record. An explicit owned ID is mandatory; callers cannot accidentally clear the terminal’s root or unrelated records.

progress follows OSC 7501: only emitted with working/blocked when Some(0..=100). Any other state, None, or out-of-range value omits the key (absent means indeterminate).