Files
kryon/docs/CLIPBOARD.md
T
waozi 5dfe1c6717 Describe Kryon as fully on Ziran in its docs and site
Build instructions install the ziran command and use the toolchain locked
in ziran.lock instead of a ../ziran sibling checkout. Downstream apps pick up
Kryon changes through ziran.lock. Terminal owns OSC 52 and bracketed paste.
The website no longer calls the migration underway, and its status page
lists the Android host, Zib desktop apps and opt-in DOM CSS layout.

The obsolete files (shell.nix, .ini themes, old site images, the duplicate
API redirect) were removed in 827eae3d, which picked up these staged
deletions.
2026-10-11 10:12:56 -03:00

953 B

Clipboard state

src/ui/clipboard.zi is a checked, portable UI value module. Applications keep a ClipboardState and own the bytes referenced by its strings. A platform host supplies system clipboard observations with ClipboardObserve and reads ClipboardPendingWrite to apply requested OS writes. After a successful OS write, it calls ClipboardWriteCompleted. Pending writes take precedence over older host observations.

ClipboardCopySelection updates the primary selection and requests a system write for nonempty text. Copying an empty selection clears the primary value without erasing the current system value. ClipboardRead selects system, primary, or primary with system fallback. The checked text widgets return copy, cut, and paste intents; the application handles those intents using this state and its platform host.

OSC 52 and bracketed paste are terminal protocols. The Terminal application implements them; Kryon does not.