Module terminal_ui

Module terminal_ui 

Source
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§

ColoredLogFormatter
Custom log formatter that adds colors and symbols
ProgressIndicator
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