Expand description
Lazy parser for CSI and DCS parameter bodies.
§Category
Params and Group expose the bytes between a control-sequence
introducer and its final byte. They handle semicolon-separated parameters and
colon-separated subparameters without allocating.
§Parameter grammar
A body such as 38:2::255:100:50;1 is viewed as two top-level groups. Empty
slots decode to None; numeric slots decode to Some(value).
38:2::255:100:50 ; 1
─────────┬──────── ┬
group 0 group 1§Mode interaction
Parameter defaults are sequence-specific. Callers apply defaults with
Params::get_or after they know which CSI/DCS final byte and mode context
they are handling.
Structs§
- Group
- One
;-separated group within aParamsbody. Wraps the raw bytes for that group (no separator); decodes its colon-separated sub-parameters on demand. - Param
Iter - Iterator over the
;-separated groups of aParams. - Params
- Borrowed view of a CSI / DCS parameter body.
- SubIter
- Iterator over the
:-separated sub-parameters of aGroup.