Skip to content
ConsoleMonster
Class

GlyphSet

ConsoleMonster.Glyphs

Namespace
ConsoleMonster.Glyphs
Assembly
ConsoleMonster
Implements
IGlyphSet
Modifiers
sealed

The built-in glyph sets. GlyphSet.Full needs a modern font (Cascadia, JetBrains Mono, DejaVu); GlyphSet.Basic stays inside the WGL4 repertoire that Consolas and Lucida Console cover; GlyphSet.Ascii is printable ASCII only.

Inheritance

  • object
  • GlyphSet

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 4

Methods

public static GlyphSet For(GlyphTier tier) #

Returns the built-in set for a tier.

Parameters

tier ConsoleMonster.Capabilities.GlyphTier required
The tier.

Returns

GlyphSet The glyph set.
public string Get(Glyph glyph) #

Returns a semantic glyph.

Parameters

glyph ConsoleMonster.Glyphs.Glyph required
The glyph name.

Returns

string The text (may be wider than one cell, for example tree prefixes or ASCII ellipsis).
public BoxGlyphs GetBox(BoxStyle style) #

Returns border glyphs, falling back to a style the tier can show.

Parameters

style ConsoleMonster.Glyphs.BoxStyle required
The requested style.

Returns

BoxGlyphs The border glyphs actually used.
public string HorizontalFill(int eighths) #

A partial horizontal block for eighths of a cell (1-8), or empty when the tier cannot show it.

Parameters

eighths int required
Filled eighths, 1-8.

Returns

string The glyph, or an empty string.
public string StatusMarker(StatusKind status) #

The marker shown for a status. Full and Basic return one symbol; Ascii returns a bracketed word such as [OK] so status stays readable without colour.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

string The marker text.
public string VerticalFill(int eighths) #

A partial vertical block for eighths of a cell (1-8), or empty when the tier cannot show it.

Parameters

eighths int required
Filled eighths, 1-8.

Returns

string The glyph, or an empty string.

Properties

public static GlyphSet Full { get; } #

Braille, eighth blocks and rounded corners. Needs Cascadia, JetBrains Mono, DejaVu, Menlo or similar.

public static GlyphSet Basic { get; } #

Box drawing, shades and half blocks from the WGL4 repertoire (Consolas, Lucida Console).

public static GlyphSet Ascii { get; } #

Printable ASCII only; statuses become bracketed words.

public GlyphTier Tier { get; } #

The tier this set targets.

public bool SupportsBraille { get; } #

Whether braille patterns (U+2800-U+28FF) render reliably.

public bool SupportsHalfBlocks { get; } #

Whether half blocks (▀▄) render reliably.

public IReadOnlyList<string> SpinnerFrames { get; } #

Spinner animation frames.

public IReadOnlyList<string> VerticalRamp { get; } #

Vertical levels from empty (index 0) to full (last index), used by sparklines.