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