module RatatuiRuby::Symbols::Block
Horizontal block characters for gauges and progress indicators.
Progress bars and gauges need characters that show partial fill from left to right. Memorizing Unicode left block characters is tedious and error-prone.
This module exposes both individual characters and predefined sets. Use the sets with Gauge widget, or use individual characters for custom progress indicators.
Note: Block uses LEFT block characters (fill from left) while Bar uses LOWER block characters (fill from bottom). They look similar but are different.
Examples
# Use NINE_LEVELS for high-resolution gauges (default) gauge = tui.gauge(percent: 50, block_set: Symbols::Block::NINE_LEVELS) # Use THREE_LEVELS for simpler rendering gauge = tui.gauge(percent: 50, block_set: Symbols::Block::THREE_LEVELS)
Constants
- FIVE_EIGHTHS
-
5/8 width block.
- FULL
-
Full width block (8/8).
- HALF
-
Half width block (4/8).
- NINE_LEVELS
-
High-resolution block set with 9 distinct levels.
- ONE_EIGHTH
-
1/8 width block.
- ONE_QUARTER
-
1/4 width block (2/8).
- SEVEN_EIGHTHS
-
7/8 width block.
- THREE_EIGHTHS
-
3/8 width block.
- THREE_LEVELS
-
Low-resolution block set with 3 levels (full, half, empty).
- THREE_QUARTERS
-
3/4 width block (6/8).