mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
The fix the last session proposed was wrong, and it was U+2580 in disguise.
"Pick the half-block ORIENTATION per cell, so every gap is painted in the
colour it sits against" cannot work: Menlo's block ink runs 4.6 to 29.4 of a
30px row, so a cell has exactly two achievable partitions and BOTH leave the
background showing.
U+2584 up[0,17] down[17,29.4] UP[29.4,30] -- 0.6px wrong at the bottom
U+2580 DOWN[0,4.6] up[4.6,17] down[17,30] -- 4.6px wrong at the top
Making the sliver match what is below forces bg = the lower colour, which
means U+2580 everywhere -- the glyph term.LowerHalf exists to avoid. There is
no third glyph either: every block element shares that ink box, so the bottom
0.6px of any cell that draws one is its background. The leak is the terminal,
not the renderer.
What is actually wrong is the RUN, not the pixel. notes/rulecount rasterises
a frame at Terminal.app's geometry and counts rules AND their widths. His own
crop calibrates it: at the disc's centre column, 17px of sky (50,95,131), 12px
of rim (165,137,136), ONE px of (100,113,134) -- and 0.43*rim + 0.57*sky is
(96,112,133), within two counts on every channel. So inkBot 29.4 and an alpha
of 0.43 are measured off his screen, not assumed.
At his own 128x27 the whole frame carries four rules and all four are on the
disc: two FIVE cells wide at the flat top and bottom caps, two one cell wide
at the shoulders. A split cell whose neighbour's edge falls in the same cell
on the same side is on a horizontal stretch of the silhouette -- it buys no
roundness at all, and the only thing it draws is seventy pixels of rule.
Shore.FlatCaps gives those cells a whole cell and leaves the sloped ones
split, which is where the curve lives. Over 6 widths x 7 heights x 48
half-hours: longest rule run 5 cells -> 1, rule cells 12920 -> 4922. The
silhouette's width profile is IDENTICAL; only the cap's fill goes from half a
row to a whole one. Gated on term.NoSplitCells, so Ghostty keeps the full
half-row edge everywhere.
Two things about the tests. TestTheMoonIsRoundAtEveryHeight was running at
this suite's zero values, which are GHOSTTY'S -- NoSplitCells false, the very
switch the collapse is gated on -- so it was clearing a disc nobody ships. It
now runs both flag states. And TestNoRuleRunsAcrossTheDiscsCap was checked to
FAIL with FlatCaps off (60x16, two cells of rule side by side) before being
trusted, because a test that passes either way proves nothing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015GQLYhGnSpasru9xeJbJry