Expand description
Semantic status glyphs with a pure-ASCII fallback.
A small companion to crate::theme::color: where the palette resolves color,
this resolves the small set of symbols CLIs use as status markers (a success check, an error cross, a bullet, an arrow…).
Unicode glyphs render on modern UTF-8 terminals; a legacy
or mis-encoded terminal falls back to a pure-ASCII stand-in
so output never turns into replacement characters.
Like Palette, a Glyphs value resolves from a single boolean,
so callers render identically regardless of capability,
and it exposes an env-free constructor (Glyphs::new) for deterministic tests alongside the environment-driven Glyphs::from_env.
Structs§
- Glyphs
- A resolved set of semantic status glyphs.
Constants§
- UTF8_
LOCALE_ ENVS - The locale environment variables consulted, in precedence order, to decide whether the terminal encoding is UTF-8.
Functions§
- unicode_
env_ enabled - Whether the process locale advertises a UTF-8 encoding.