MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / print_info_line

Function print_info_line

mini_agent/cli.py:227–232  ·  view source on GitHub ↗

Print a single info line with proper padding

(text: str)

Source from the content-addressed store, hash-verified

225 BOX_WIDTH = 58
226
227 def print_info_line(text: str):
228 """Print a single info line with proper padding"""
229 # Account for leading space
230 text_width = calculate_display_width(text)
231 padding = max(0, BOX_WIDTH - 1 - text_width)
232 print(f"{Colors.DIM}│{Colors.RESET} {text}{' ' * padding}{Colors.DIM}│{Colors.RESET}")
233
234 # Top border
235 print(f"{Colors.DIM}┌{'─' * BOX_WIDTH}┐{Colors.RESET}")

Callers 1

print_session_infoFunction · 0.85

Calls 1

calculate_display_widthFunction · 0.90

Tested by

no test coverage detected