module RatatuiRuby::Symbols::Line

Box-drawing characters for borders and lines.

Terminal UIs need consistent box-drawing characters for borders and dividers. Memorizing Unicode box-drawing characters is tedious and error-prone.

This module exposes both individual characters and predefined sets. Use the sets with widgets that accept a line_set parameter, or use individual characters for custom drawing.

Examples

# Use a predefined set for drawing boxes
line_set = Symbols::Line::ROUNDED

# Draw a simple frame
top = "#{line_set[:top_left]}#{line_set[:horizontal] * 10}#{line_set[:top_right]}"
mid = "#{line_set[:vertical]}#{' ' * 10}#{line_set[:vertical]}"
bot = "#{line_set[:bottom_left]}#{line_set[:horizontal] * 10}#{line_set[:bottom_right]}"

# Use individual characters for custom drawing
corner = Symbols::Line::ROUNDED_TOP_LEFT  # => "╭"