Functionsยง
- strip_
ansi - Strip ANSI CSI / OSC escape sequences so tool output renders cleanly.
Handles the common cases (
\x1b[...m, OSC\x1b]...\x07/\x1b\\, single-char escapes like\x1b(B).
\x1b[...m, OSC \x1b]...\x07/\x1b\\,
single-char escapes like \x1b(B).