Skip to main content

ASCII_ELLIPSIS

Constant ASCII_ELLIPSIS 

Source
pub const ASCII_ELLIPSIS: &str = "~";
Expand description

The mark that stands for ELLIPSIS in ASCII glyph mode.

A tilde, one cell like the ellipsis it replaces, so a cut text is exactly as wide in every mode and nothing measured with width moves. It is the cut mark ASCII terminals already know from shortened file names (PROGRA~1, a file manager’s long~name.txt); a period would read as the end of a sentence or, in the middle of a path, as part of the name, and ... would take two more cells from a column that is already too narrow.