pub fn normalize(input: &str) -> StringExpand description
Normalize input: strip ANSI SGR, simulate CR/EL/CUU/CUD/CHA redraws, and
return the final rendered text. Deterministic and pure — same bytes in,
byte-identical text out, every call (SPEC.md TR-4’s determinism
requirement; see tests::deterministic_across_repeated_runs).
Never panics (see the module doc comment’s safety note): a malformed or truncated escape sequence is copied through as literal text rather than ever indexing out of bounds or asserting on unexpected structure.