Skip to main content

escape

Function escape 

Source
pub fn escape(text: &str) -> String
Expand description

Model text made safe for a terminal: escape (\x1b) as ␛, other control characters as ^X; newlines and tabs kept.