Skip to main content

WIPE_LINE

Constant WIPE_LINE 

Source
pub const WIPE_LINE: &[u8] = b"\r\x1b[2K";
Expand description

Returned to column 0 and cleared after the probe: wipes anything a terminal printed for a query it didn’t understand (a terminal we don’t know about, or Apple Terminal reached over SSH, where TERM_PROGRAM isn’t forwarded). Runs before anything else is written, so the line holds nothing else.