Skip to main content

parse_body

Function parse_body 

Source
pub fn parse_body(body: &[u8]) -> Result<Message<'_>, Error>
Expand description

Parses the body of one OSC 7501 sequence: the bytes after ESC ] 7501 ; and before the string terminator.

Implements the terminal-side rules of revision 0.4: malformed pairs are skipped, unknown keys ignored, the last repeat of a key wins, and any broken limit, bad base64 or control character discards the whole report. An Err means nothing from the report may be applied.

See docs/interpretations.md for the places where the spec leaves room.