Strips ANSI escape codes and terminal control sequences (including CSI,
OSC clipboard/title commands, and non-printable control characters) from
text destined for human-readable terminal display, preserving standard formatting
(newlines, carriage returns, tabs) and ordinary text/code.
Strips ANSI escape codes and terminal control sequences (including CSI, OSC clipboard/title commands, and non-printable control characters) from text destined for human-readable terminal display, preserving standard formatting (newlines, carriage returns, tabs) and ordinary text/code.