Coverage for src/lilbee/runtime/bee_logo.py: 100%
8 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-14 11:46 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-14 11:46 +0000
1"""The lilbee wordmark, shared by every loading surface."""
3from __future__ import annotations
5BEE_LINES = [
6 " ",
7 "@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@@ ",
8 "@@@ @@@ @@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ ",
9 "@@@ @@@ @@@ @@! @@@ @@! @@! ",
10 "@! !@! !@! !@ @!@ !@! !@! ",
11 "@!! !!@ @!! @!@!@!@ @!!!:! @!!!:! ",
12 "!!! !!! !!! !!!@!!!! !!!!!: !!!!!: ",
13 "!!: !!: !!: !!: !!! !!: !!: ",
14 " :!: :!: :!: :!: !:! :!: :!: ",
15 " :: :::: :: :: :::: :: :::: :: :::: :: :::: ",
16 ": :: : : : : :: : : :: : :: : :: :: : :: :: ",
17 " ",
18]
20LOGO_WIDTH = len(BEE_LINES[1])
22# xterm-256 indexes. The logo warms from dim to bright as startup advances:
23# dim while the bootstrap unpacks, pulsing while Python imports, bright once
24# the engine is warm.
25ROSE_DIM_XTERM = 95
26ROSE_MID_XTERM = 181
27ROSE_BRIGHT_XTERM = 217
30def xterm_fg(index: int) -> str:
31 """The ANSI escape that sets *index* as the foreground color."""
32 return f"\033[38;5;{index}m"