Skip to main content

describe_write_text

Function describe_write_text 

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

Render a sanitized WriteText payload for the confirmation dialog.

Control characters are escaped rather than shown raw: the trailing newline is what turns typed text into a submitted command, and it is invisible in a label. Long payloads are truncated — the dialog is a decision aid, not a pager.