MCPcopy Create free account
hub / github.com/codeaashu/claude-code / makeFallbackGlyph

Function makeFallbackGlyph

src/utils/ansiToPng.ts:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44const FALLBACK_GLYPH = makeFallbackGlyph()
45
46function makeFallbackGlyph(): Uint8Array {
47 const g = new Uint8Array(GLYPH_BYTES)
48 for (let y = 2; y < GLYPH_H - 4; y++) {
49 for (let x = 1; x < GLYPH_W - 1; x++) {
50 const onBorder =
51 y === 2 || y === GLYPH_H - 5 || x === 1 || x === GLYPH_W - 2
52 if (onBorder && (x + y) % 2 === 0) g[y * GLYPH_W + x] = 255
53 }
54 }
55 return g
56}
57
58const FONT: Map<number, Uint8Array> = decodeFont()
59

Callers 1

ansiToPng.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected