Skip to main content

Crate ztty_plugin_api

Crate ztty_plugin_api 

Source
Expand description

Shared interface for independently built ztty text extensions.

Native implementations are trusted code. They must not retain input/output references after a call. ztty validates the returned length and UTF-8 before committing a result. Change the interface version when changing signatures.

Structs§

TextActionApi
The frozen interface descriptor and typed proxy constructors.
TextActionBinding
A validated, borrowed interface binding. Create objects without rebinding.
TextActionExport
The generated plugin-side adapter. Use with zplugin::export!.
TextActionProxy
An object that retains its plugin and caches its validated method table.

Constants§

MAX_TEXT_BYTES
The host accepts at most this many UTF-8 input or output bytes per action.

Traits§

TextAction
Transform a selected string or the currently visible terminal text.