Skip to content

Commit 47fdaa0

Browse files
slang25claude
andcommitted
feat: add powerline and block character rendering, visual test suite
- Implement renderBlockChar() for U+2580-U+259F block elements as pixel-perfect rectangles - Implement renderPowerlineGlyph() for U+E0B0-U+E0BF glyphs as vector shapes - Update font metrics to use fontBoundingBox for accurate cell height - Add buildFontString() helper for proper font family quoting - Add cursor style support from buffer and cursorAccent color rendering - Add 15 visual regression tests covering text, colors, cursors, wide chars, and special glyphs - Include headless Puppeteer test runner for CI/CD integration - Add baseline PNG images for all tests passing Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent fd09412 commit 47fdaa0

21 files changed

Lines changed: 1380 additions & 30 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ dist/
66

77
# WASM build output (built locally and in CI)
88
ghostty-vt.wasm
9+
10+
# Visual render test failure artifacts
11+
demo/baselines/*.fail.png

bun.lockb

88.5 KB
Binary file not shown.

demo/baselines/ansi-colors.png

9.64 KB
Loading

demo/baselines/basic-text.png

13.5 KB
Loading
15.3 KB
Loading

demo/baselines/colorscript-art.png

3.37 KB
Loading

demo/baselines/combined-styles.png

24.5 KB
Loading

demo/baselines/cursor-bar.png

7.6 KB
Loading

demo/baselines/cursor-block.png

7.75 KB
Loading
7.73 KB
Loading

0 commit comments

Comments
 (0)