Repository navigation
feat(bindings): expose rendering settings and native assertions - #275
Draft
Ayman Bagabas (aymanbagabas) wants to merge 3 commits into
Draft
Ayman Bagabas (aymanbagabas) wants to merge 3 commits into
Ayman Bagabas (aymanbagabas) wants to merge 3 commits into
Conversation
cpendery (cpendery)
force-pushed
the
aymanbagabas/binding-parity
branch
2 times, most recently
from
October 31, 2026 20:50
68b28a8 to
efad7d4
Compare
Ayman Bagabas (aymanbagabas)
force-pushed
the
aymanbagabas/binding-parity
branch
from
October 31, 2026 21:18
efad7d4 to
e25122c
Compare
Expose typed rendering settings through JavaScript, Python, and Go. Preserve native defaults, explicit values, and restart behavior without changing caller settings. Add native cursor, mode, and color assertions plus state getters. Regenerate the ABI, extend compiler layout checks, and include runnable rendering examples. Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Declare rendering options and native state assertions in the adapter stub. Check public adapter methods and spawn argument counts against the implementation to catch future omissions. Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
cpendery (cpendery)
force-pushed
the
aymanbagabas/binding-parity
branch
from
October 31, 2026 23:40
e25122c to
14fb00b
Compare
…as/parity-raster-review-fixes Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com> # Conflicts: # bindings/js/README.md # bindings/python/README.md # references/javascript.md # references/python.md
This branch has not been 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
This draft builds on #274, above #271 and #272.
Cursor settings control permission to blink and the duration of each phase. They do not force a steady application cursor to blink.
Screenshots remain deterministic. Rendering settings do not change terminal colors or locator assertions.
Demonstration
The JavaScript example creates these GIFs through the native renderer.
Both use a 24-pixel font, custom padding, no title bar, and no shadow.
The application requests a blinking bar cursor.
Blink disabled
The constructor style disables animation. The GIF contains one frame and preserves 1.10 seconds of active time.
Per-call override: 250 ms phases
A per-call style enables animation. The GIF contains five phases over 1.10 seconds.
The first four encoded phases last 270, 240, 260, and 240 ms, within the 30 FPS sampling interval.
The original constructor settings remain unchanged.
Examples:
bindings/js/examples/rendering.mjsbindings/python/examples/rendering.pybindings/go/examples/rendering/main.goRemaining parity gaps
This draft does not claim complete Rust API parity.
The binding locator transport still lacks
TextSelector.scopeanchors and the whole-matchLocatorQuery.stylefilter.Intersection with
getByStyle()is not equivalent: it can return a styled substring instead of rejecting the full text match.These gaps remain outside this implementation.
Validation
Local macOS ARM64 checks:
The broader JavaScript run passed 102 of 103 tests. The existing echo roundtrip test timed out in
waitReady.The unchanged CLI also reproduced that zsh readiness failure after a command.
No shell integration code changes are included.
Native Windows and Deno validation remain pending.