Repository navigation
Tags
Tags
test(#218): the wall asserted on cells — libghostty-vt behind one swi… …tch, 0 B in the product (#223) The last UI-v2 item, and the only one that is build engineering: a test that reads a grid of cells instead of a pty's byte stream. `KRD_VT_XCFRAMEWORK` decides, in Swift, whether the VT exists at all. Unset (every fresh clone, CI today): no `KrdVT` binary target, no `KrdHeadlessVT` wrapper, `HeadlessRenderTests.swift` compiles to nothing, and `swift build` / `swift test` are what they were — 1106 tests, 1 skipped. Set (a local `ghostty-vt.xcframework` from `scripts/build-vt-xcframework.sh`): +5 tests, 0.015 s, and 1111 tests green. The artifact is built at ghostty v1.4.0 (83fb956) with Zig 0.17.0 — both pinned, both signature-checked — and published out of band; the pinned `binaryTarget(url:checksum:)` sits commented with its sha256, so publishing + flipping is one edit (docs/TESTING.md §13). Building it twice from a clean cache reproduces the same zip byte for byte (c0c9a32b…, 8,179,864 B). The test asserts what only a terminal can answer: `▪ krd` is `palette.accent` on cells 1-5, the stage caption is one cell per glyph, and the focus ring is an underline on exactly the cells the caption wrote, composed on top of the style already there (the footer's `2;37` becomes `2;37;4` while the `N panels` tail on the same row stays `2;37`). Mutating the product — drop the ring's `;4`, or paint the wordmark in the default foreground — turns it red naming the cell that disagrees. Sizes: the shipping `krd` is byte-identical with the switch on and off (0 B, no `ghostty` symbols). The test bundle carries +2.39 MiB (2.14 MiB with a stripped artifact), which is over the issue's 150 KB budget and cannot be under it: that budget was the width function, which is `WidthTable.swift` and not this. Co-authored-by: zhijiezheng <zhijiezheng@tencent.com>
krd 0.1.1 macOS desktop inside a terminal pane over SSH. - ScreenCaptureKit capture, tile-dirty updates over the kitty graphics protocol - pixel-accurate pointer, all three buttons, double/triple click, modifiers, wheel - one-line installer that fetches, verifies and signs the release - bilingual docs, self-test that needs no permissions