Expand description
Display utilities for consistent styling and layout in terminal interfaces.
This module provides functions for:
- Chinese/English character width calculation
- Text alignment and padding
- Terminal width detection and adaptive layout
- Consistent formatting for configuration display
Enums§
- Text
Alignment - Text alignment options
Functions§
- format_
token_ for_ display - Format a configuration token for safe display
- get_
terminal_ width - Detect current terminal width, with fallback to default
- pad_
text_ to_ width - Pad text to a specific display width, handling Chinese/English character differences.
- text_
display_ width - Calculate the display width of a string considering Chinese/English character differences.