feat: support clipboard writes and scrollback compression - #108
Merged
Conversation
Forward terminal clipboard requests to an application callback so embedders retain control over platform and security policy.
Schedule bounded compression after terminal and viewport activity settles to reduce scrollback memory without competing with rendering.
elias8
force-pushed
the
feat/clipboard-compression
branch
5 times, most recently
from
July 20, 2026 15:06
4b2b09f to
9d7043d
Compare
Kallz02
pushed a commit
to sshotty/libghostty
that referenced
this pull request
Jul 21, 2026
…lias8#108) Merges elias8/libghostty@bf26062 (clipboard writes + scrollback compression) into the sshotty fork while preserving our custom additions: - searchHits / Searcher / SearchHighlightPainter (find-on-page) - pasteImage() (kitty graphics writer API) - fillAvailableSpace / gridSizeFill (full-pane terminal sizing) - cellPixelSize getter (PTY resize forwarding) - DPR-only resize propagation to backend - scroll controller positions.length guards Upstream brings: - Terminal.onClipboardWrite / CompressionScheduler - terminal.compress() / terminal.compressionActivity - handleViewportChanged binding for idle compression - ghostty source version bump Both feature sets are non-overlapping.
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.
Add clipboard write handling and idle scrollback compression across libghostty and flterm.
Replaces #105