Skip to content
ConsoleMonster
Class

GlyphSetExtensions

ConsoleMonster.Glyphs

Namespace
ConsoleMonster.Glyphs
Assembly
ConsoleMonster
Modifiers
static

Status symbols and the running spinner, shared by every widget (see Docs/Design-System.md).

Inheritance

  • object
  • GlyphSetExtensions

Methods

public static string Icon(IGlyphSet glyphs, Icon icon) #

The text of an icon catalog key in the glyph set's tier (see Icons). Custom glyph sets resolve by their IGlyphSet.Tier; the status icons (warning, done) use the set's own symbols. A key from another pack (pack:name) is looked up by its name; an unknown key draws the item mark.

Parameters

glyphs ConsoleMonster.Glyphs.IGlyphSet required
The glyph set.
icon ConsoleMonster.Icon required
The icon.

Returns

string One cell of text.
public static string Spinner(RenderContext context, long offset = 0) #

The running symbol for this frame: the tier's spinner, advanced by the session's tick (offset so neighbouring rows do not spin in step), or the static running glyph when the tier has no spinner. Every widget that shows running work (lanes, phases, status lists, activities, spinners) uses this one.

Parameters

context ConsoleMonster.Canvas.RenderContext required
The render context.
offset long = 0 optional
A per-row offset.

Returns

string The symbol.
public static string StatusSymbol(IGlyphSet glyphs, StatusKind status) #

The one-cell symbol of a status in the glyph set's tier: ✓ ✗ ▲ – ● ○ ◆ ‼ ? Ø (Full), the same in Basic, + x ! - * . i E ? / (ASCII). IGlyphSet.StatusMarker is the wider marker for status columns (bracketed words in ASCII).

Parameters

glyphs ConsoleMonster.Glyphs.IGlyphSet required
The glyph set.
status ConsoleMonster.Styling.StatusKind required
The status.

Returns

string The symbol.