Repository navigation
Bump libghostty to vt-1.0.0 and accept any Zig 0.17.x - #796
Merged
Merged
Conversation
Pin the libghostty-vt 1.0.0 release tarball, which is 4.5 MB against 40 MB for the GitHub archive. Adapt to the packed Style and to set_attributes replacing set_attribute. Forward vtPrintAscii from the handler so the stream keeps its ASCII fast path, and take that path in the comint filter. Style.withAttribute replaces the filter's applyAttr copy, and placeholderTarget now only returns virtual placements. The build gate follows upstream's rule: same major and minor, and at least the required patch. Homebrew's Zig 0.17.1 builds again. Its zig fmt rewrites @intFromEnum and @enumFromInt to the backing-int builtins, which exist in 0.17.0.
Release binaries were built with an older compiler than local development uses, and 0.17.1 carries LLVM codegen fixes. The pure-Zig unit test job stays on 0.17.0 so the minimum in build.zig.zon keeps being compiled.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Styleand toset_attributesreplacingset_attribute.vtPrintAsciifrom the handler. Without it the build passes, but plain parsing ends up 14% slower than the old pin instead of 28% faster.applyAttrwithStyle.withAttribute, and take the ASCII path there too.zig fmtfrom 0.17.1, which rewrites@intFromEnumand@enumFromIntto the backing-int builtins.Behaviour changes
Parse timings
ms per 1 MB, 8 randomized rounds,
emacs --batch:Emacs-side rendering dominates end to end, so parse plus redraw moves only about −4% to +3%, apart from the styled case above.
Verification
make -j8 allpasses on macOS arm64 with Zig 0.17.1 (1,533 ERT tests, Zig tests, lint).ghostel-test-kitty-image-at-cursor-after-shrinkfails on the old module and passes on the new one.ghostel-comint-test-styled-run-after-mixed-textcovers offsets across ASCII and multibyte text. It fails when the offset logic is deliberately broken.less.Open points
backend/plain/nativemeasured slower with the forwarder than without it in two runs (about 16 vs 13–14 ms, old pin about 15 ms). Unexplained.