Skip to content

glyphFor

glyphFor(terminal, role): string

Defined in: glyph-for.ts:53

The symbol for role, in whichever repertoire the terminal can render.

better and worse are drawn as down and up triangles: the roles name the judgement, not the direction, so a higher-is-better measure passes better for a rise and still gets the glyph its readers associate with good news. A renderer that means “the number went up” wants triangleUp from the inventory directly.

Terminal

GlyphRole

string