Expand description
Kitty drag and drop messages through OSC 72.
write_drag_drop frames one message. Callers supply metadata and a
wire-ready payload, manage registration, and complete or cancel transfers.
Unregister before a shell handoff or exit.
Binary payloads use standard base64. Callers split encoded payloads to meet
the protocol’s 4096-byte limit. For a chunked message, use m=1 until the
last chunk (m=0).
Only the first chunk must contain the full metadata. An empty data response
with m=0 ends a transfer; a nonempty response with m=0 only ends a message.
Replies arrive as Event::DragDrop.
See the protocol specification.
Constants§
- REQUEST_
DRAG_ DROP - Query OSC 72 support without a routing ID.
Functions§
- write_
drag_ drop - Write one OSC 72 message without flushing.