Named character lookup for TUI rendering.
Provides a single authoritative source for every Unicode/ASCII character used across Drafter widgets. Characters are grouped by purpose and keyed by skin name so that calling code can switch between graphical and wireframe rendering without embedding strings directly.
Usage
import Drafter.CharacterSet
# Current-skin lookup (respects SkinManager)
fill(:full) # "█" in :graphical / :wireframe
sparkline_levels() # ["▁".."█"] in :graphical, ["1".."8"] in :ascii
# Explicit skin override
fill(:full, :wireframe)
box(:h_line, :wireframe)Built-in skins
| Skin | Description |
|---|---|
:graphical | Unicode block + braille characters (default) |
:wireframe | Unicode box-drawing, block fill, minimal decoration |
:ascii | 7-bit ASCII only — maximum compatibility |
Summary
Functions
Look up an arrow character for the current skin.
Look up an arrow character for the given skin.
Look up a box-drawing character for the current skin.
Look up a box-drawing character for the given skin.
Look up a fill character for the current skin.
Look up a fill character for the given skin.
Returns all characters for a group in the current skin.
Returns all characters for a group in the given skin.
Look up an indicator character for the current skin.
Look up an indicator character for the given skin.
Returns the preferred theme name for the current skin.
Returns the preferred theme name for the given skin atom.
Look up a scrollbar character for the current skin.
Look up a scrollbar character for the given skin.
Returns the list of registered skin names.
Returns the horizontal sparkline level list for the current skin.
Returns the horizontal sparkline level list for the given skin.
Returns the vertical sparkline level list for the current skin.
Returns the vertical sparkline level list for the given skin.
Returns the spinner frame list for a given style and current skin.
Returns the spinner frame list for a given style and skin.
Returns the full style preferences map for the current skin.
Returns a single style preference key for the current skin.
Functions
Look up an arrow character for the current skin.
Look up an arrow character for the given skin.
Look up a box-drawing character for the current skin.
Look up a box-drawing character for the given skin.
Look up a fill character for the current skin.
Look up a fill character for the given skin.
Returns all characters for a group in the current skin.
Returns all characters for a group in the given skin.
Look up an indicator character for the current skin.
Look up an indicator character for the given skin.
@spec preferred_theme() :: String.t()
Returns the preferred theme name for the current skin.
Returns the preferred theme name for the given skin atom.
Look up a scrollbar character for the current skin.
Look up a scrollbar character for the given skin.
@spec skins() :: [atom()]
Returns the list of registered skin names.
@spec sparkline_levels_h() :: [String.t()]
Returns the horizontal sparkline level list for the current skin.
Returns the horizontal sparkline level list for the given skin.
@spec sparkline_levels_v() :: [String.t()]
Returns the vertical sparkline level list for the current skin.
Returns the vertical sparkline level list for the given skin.
Returns the spinner frame list for a given style and current skin.
Returns the spinner frame list for a given style and skin.
@spec style() :: map()
Returns the full style preferences map for the current skin.
Returns a single style preference key for the current skin.