MCPcopy Create free account
hub / github.com/FastLED/FastLED / _print_panel

Function _print_panel

ci/wasm_compile.py:4–14  ·  view source on GitHub ↗

Print a simple box panel without rich (saves 112ms import).

(title: str, lines: list[str])

Source from the content-addressed store, hash-verified

2
3
4def _print_panel(title: str, lines: list[str]) -> None:
5 """Print a simple box panel without rich (saves 112ms import)."""
6 all_lines = [title, ""] + lines
7 width = max(len(line) for line in all_lines) + 4
8 border = "-" * width
9 print(f"\n+{border}+")
10 print(f"| {title:<{width - 2}} |")
11 print(f"|{' ' * width}|")
12 for line in lines:
13 print(f"| {line:<{width - 3}} |")
14 print(f"+{border}+\n")
15
16
17def parse_args() -> tuple:

Callers 1

mainFunction · 0.85

Calls 2

maxFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected