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

Function print_banner

mini_agent/cli.py:171–188  ·  view source on GitHub ↗

Print welcome banner with proper alignment

()

Source from the content-addressed store, hash-verified

169
170
171def print_banner():
172 """Print welcome banner with proper alignment"""
173 BOX_WIDTH = 58
174 banner_text = f"{Colors.BOLD}🤖 Mini Agent - Multi-turn Interactive Session{Colors.RESET}"
175 banner_width = calculate_display_width(banner_text)
176
177 # Center the text with proper padding
178 total_padding = BOX_WIDTH - banner_width
179 left_padding = total_padding // 2
180 right_padding = total_padding - left_padding
181
182 print()
183 print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}╔{'═' * BOX_WIDTH}╗{Colors.RESET}")
184 print(
185 f"{Colors.BOLD}{Colors.BRIGHT_CYAN}║{Colors.RESET}{' ' * left_padding}{banner_text}{' ' * right_padding}{Colors.BOLD}{Colors.BRIGHT_CYAN}║{Colors.RESET}"
186 )
187 print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}╚{'═' * BOX_WIDTH}╝{Colors.RESET}")
188 print()
189
190
191def print_help():

Callers 1

run_agentFunction · 0.85

Calls 1

calculate_display_widthFunction · 0.90

Tested by

no test coverage detected