pub fn escape(text: &str) -> String
Model text made safe for a terminal: escape (\x1b) as ␛, other control characters as ^X; newlines and tabs kept.
\x1b
␛
^X