Skip to content

Draw a solid half-block cell as its background, not █ - #110

Merged
HarryCordewener merged 1 commit into
mainfrom
fix/block-art-solid-cells
Nov 16, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
fix/block-art-solid-cells

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Problem

In BeipMU, SharpMUSH Community's login logo is striped. The logo is figure() drawn as half blocks (TerminalPictureWriter.EncodeBlockArt).

I measured BeipMU's screenshot. Lines there are 62 px apart, but a █ is painted only from 14 px to 55 px (the glyph's height). A cell's background, on the other hand, fills all 62 px. Every cell of the logo with a background was solid: 53 of 53. Every bare █/▀/▄ was short: 176 of 176. Since 2.31.3, a cell whose halves are one colour has been written as a bare █, so the solid parts of a picture are exactly the striped ones.

Change

A cell whose halves are one colour (at the client's depth) is now written as a space on that background. The foreground is left at the run's own. A background fills the whole cell in every client, and no cell has a foreground equal to its background, so 2.31.3's hidden-text fix still holds. Cells with two colours or a transparent half are unchanged.

What's left in BeipMU are the edges where one half is transparent (▀/▄ on the default background). They still depend on BeipMU's glyph height, and that is BeipMU's to fix.

Tests

  • BlockArtDrawsASolidCellAsItsBackground is new.
  • BlockArtDrawsTwoPixelsACell, BlockArtMergesHalvesTheDepthMakesEqual and BlockArtFollowsTheColourDepth now expect backgrounds instead of █.
  • The full suite passes on net11.0: 1790 tests.

Generated by Claude Code

A cell whose two halves are one colour was written as a bare █ in that
colour. Clients that draw █ from the font (BeipMU among them) fill only the
glyph's height, which is about two thirds of a line, so a logo drawn as
half blocks came out striped wherever it was solid. A space on that
background fills the whole cell in every client, and still writes no cell
whose foreground equals its background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7TMy1WfPj9wScEbqyi
@HarryCordewener HarryCordewener self-assigned this Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 16, 2026 04:17
@HarryCordewener
HarryCordewener merged commit 1b8e51f into main Nov 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants