Expand description
Terminal user interface components Terminal UI formatting and display helpers for ant-quic
Provides colored output, formatting, and visual elements for better UX
Modules§
- box_
chars - Box drawing characters for borders
- colors
- ANSI color codes for terminal output
- symbols
- Unicode symbols for visual indicators
Structs§
- Colored
LogFormatter - Custom log formatter that adds colors and symbols
- Progress
Indicator - Progress indicator for operations
Functions§
- describe_
address - Categorize and describe an IP address
- draw_
box - Draw a box with title and content
- format_
address - Format an address with appropriate coloring
- format_
address_ with_ words - Format an address as four words with original address in brackets
- format_
bytes - Format bytes into human-readable size
- format_
duration - Format duration into human-readable time
- format_
peer_ id - Format a peer ID with color (shows first 8 chars)
- format_
timestamp - Format timestamp into HH:MM:SS format
- print_
banner - Print the startup banner
- print_
item - Print an item with bullet point
- print_
section - Print a section header
- print_
status - Print a status line with icon