Skip to content

terminal: hook up glyph protocol glossary to terminal state - #12937

Merged
mitchellh merged 1 commit into
mainfrom
push-uroukrkwwvsx
Jun 6, 2026
Merged

mitchellh merged 1 commit into
mainfrom
push-uroukrkwwvsx

Conversation

@mitchellh

Copy link
Copy Markdown
Contributor

This hooks up the glyph protocol glossary to the terminal state. This effectively makes us handle the APC protocol for it both in Ghostty GUI and libghostty, although we didn't implement the renderer yet.

The Zig/C libghostty API also has a way to disable the protocol but it is enabled by default. The memory usage is bound by the specification.

For dirty tracking for the renderer, we're going with the simple route that any glyph change marks a coarse grained dirty flag and we'll [in the future] rebuild the entire state in the renderer. I think this will be fine for realistic workloads, but we can reassess in the future when we have real workloads.

This hooks up the glyph protocol glossary to the terminal state. This
effectively makes us handle the APC protocol for it both in Ghostty GUI
and libghostty, although we didn't implement the renderer yet.

The Zig/C libghostty API also has a way to disable the protocol but it is 
enabled by default. The memory usage is bound by the specification.

For dirty tracking for the renderer, we're going with the simple route that 
any glyph change marks a coarse grained dirty flag and we'll [in the future]
rebuild the entire state in the renderer. I think this will be fine for 
realistic workloads, but we can reassess in the future when we have
real workloads.
@mitchellh mitchellh added this to the 1.4.0 milestone Jun 5, 2026
@mitchellh
mitchellh requested a review from a team as a code owner June 5, 2026 22:38
@mitchellh mitchellh added the vt Control sequence related label Jun 5, 2026
@mitchellh
mitchellh merged commit f146db5 into main Jun 6, 2026
191 checks passed
@mitchellh
mitchellh deleted the push-uroukrkwwvsx branch June 6, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vt Control sequence related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant