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.
Parameters
Section titled “Parameters”terminal
Section titled “terminal”Returns
Section titled “Returns”string