feat(flterm): expose accessible terminal semantics - #102
Open
adonm wants to merge 1 commit into
Open
Conversation
adonm
force-pushed
the
upstream/101-accessibility
branch
from
August 15, 2026 22:36
ed9a137 to
2b8ca42
Compare
TerminalView now renders a semantics node with the visible, non-concealed terminal viewport as its value, along with the configured label, hint, and focus actions. The render pipeline captures the accessible snapshot after each paint, coalesced through a bounded refresh interval, and follows the visible scrollback viewport. Set semanticsLabel to null to delegate the accessible surface to an embedding application. Ported from the downstream GTK4-era implementation onto the refactored frame-source render pipeline.
adonm
force-pushed
the
upstream/101-accessibility
branch
from
August 15, 2026 22:49
2b8ca42 to
ef585ed
Compare
Author
|
Local validation on the pinned Flutter beta: |
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
Adds a screen-reader semantics node to
TerminalView:semanticsLabel/semanticsHintparams with sensible defaults ('Terminal'/'Activate to focus terminal input'). SetsemanticsLabel: nullto delegate the accessible surface to an embedding application.Implementation
FrameBuilder.semanticsText()walks the existingRowIterator/CellIteratorstate and emits plain text;RenderPipeline/renderer forward a monotonically increasingsemanticsGenerationand anonSemanticsTextcallback fired frompaintafter frame sync._TerminalViewStateschedules generation bumps on terminal output and primary-screen scroll, and rebuilds the semantics node through aValueNotifierwithout recreating the terminal subtree.Tests
This was carried downstream in the Zuko remote-shell client and is ported here from that implementation onto the refactored frame-source pipeline.