UI Glyphs

SolidGroundUX DocumentationSolidGroundUX
NL

Provide glyph and symbol helpers for console rendering

Source: target-root/usr/local/lib/solidgroundux/common/ui-glyphs.sh

Provide glyph and symbol helpers for console rendering

Internal functions
FunctionPurposeArgumentsOutput
_sgnd_lib_guardEnsure direct execution is rejected and record that the library has been sourced.——

Description

Defines reusable glyphs, symbols, and character helpers for use in console output across the SolidGroundUX framework.

The library:

  • Provides box-drawing characters and layout elements
  • Defines commonly used symbols (checkmarks, arrows, separators, etc.)
  • Encapsulates Unicode and ASCII fallbacks where needed
  • Supports consistent visual language across all UI components

Design principles

  • Centralize glyph definitions to avoid duplication
  • Prefer readability and consistency over decorative complexity
  • Allow graceful fallback for terminals with limited Unicode support
  • Keep rendering concerns separate from glyph definition

Role in framework

  • Foundational visual layer used by ui.sh and related UI modules
  • Supports consistent styling across all console tools

Non-goals

  • Rendering logic or layout behavior
  • Terminal capability detection beyond basic fallback handling
  • Theme or color management

Glyph definitions

These variables are display constants only; rendering and color handling live in UI modules. Values are documented from their Bash assignments.

Glyphs — Light line drawing

VariableValueNotes
LN_H"─"
LN_V"│"
LN_TL"┌"
LN_TR"┐"
LN_BL"└"
LN_BR"┘"
LN_T"┬"
LN_B"┴"
LN_L"├"
LN_R"┤"
LN_X"┼"

Glyphs — Double line drawing

VariableValueNotes
DL_H"═"
DL_V"║"
DL_TL"╔"
DL_TR"╗"
DL_BL"╚"
DL_BR"╝"
DL_T"╦"
DL_B"╩"
DL_L"╠"
DL_R"╣"
DL_X"╬"

Glyphs — Common characters

VariableValueNotes
CH_DEG"°"
CH_COPY"©"
CH_TM"™"
CH_REG"®"
CH_BULLET"•"
CH_ARROW"→"
CH_ELLIPSIS"…"

Glyphs — Math / comparison

VariableValueNotes
CH_SQRT"√"
CH_GE"≥"
CH_LE"≤"
CH_NE"≠"
CH_APPROX"≈"
CH_INF"∞"

Glyphs — Keyboard hints

VariableValueNotes
KY_ENTER"↵"
KY_UP"↑"
KY_DOWN"↓"
KY_LEFT"←"
KY_RIGHT"→"

Glyphs — Greek letters

VariableValueNotes
GR_ALPHA"α"
GR_BETA"β"
GR_GAMMA"γ"
GR_DELTA"Δ"
GR_PI"π"
GR_OMEGA"Ω"