Named terminal glyphs and ASCII fallbacks.
Use the Unicode constants for rich terminal output, and the _ascii
constants when output must stay plain ASCII.
pub type Mode {
Unicode
Ascii
}
Constructors
pub type Status {
Info
Warn
Error
Success
Start
Trace
Debug
Notice
Alert
Bullet
Arrow
}
Constructors
pub const arrow_ascii: String
ASCII disclosure arrow glyph.
pub const bullet_ascii: String
pub const error_ascii: String
pub const info: String
Informational message glyph.
pub const info_ascii: String
ASCII informational glyph.
pub fn resolve(
mode: Mode,
unicode unicode: String,
ascii ascii: String,
) -> String
Resolve a glyph pair according to the requested mode.
pub const start_ascii: String
ASCII in-progress/start glyph.
pub fn status(mode: Mode, status: Status) -> String
Resolve a named status glyph according to the requested mode.
pub const success: String
pub const success_ascii: String
pub const warn_ascii: String