pub fn sanitize_terminal_text(text: &str) -> String
Remove terminal controls while preserving user-visible whitespace.