Print welcome banner with proper alignment
()
| 169 | |
| 170 | |
| 171 | def 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 | |
| 191 | def print_help(): |
no test coverage detected