Skip to main content

sanitize_for_display

Function sanitize_for_display 

Source
fn sanitize_for_display(s: &str) -> String
Expand description

Sanitize a string for safe terminal display by removing ANSI escape sequences and control characters that could affect cursor position or terminal state.