(lines: list[str], title: str = "", width: int = 80 - 4)
| 16 | |
| 17 | |
| 18 | def print_box(lines: list[str], title: str = "", width: int = 80 - 4): |
| 19 | print("┌" + "─" * width + "┐") |
| 20 | if title: |
| 21 | print(f"│ {title:<{width-4}} │") |
| 22 | print("├" + "─" * width + "┤") |
| 23 | for line in lines: |
| 24 | for subline in line.split("\n"): |
| 25 | print(f"│ {subline:<{width-4}} │") |
| 26 | print("└" + "─" * width + "┘") |
| 27 | |
| 28 | |
| 29 | def print_success(text: str): |