libghostty
Loading...
Searching...
No Matches
GhosttyClipboardWriteReply Struct Reference

#include <ghostty/vt/terminal.h>

Data Fields

size_t size
GhosttyClipboardWriteResult result
bool remember

Detailed Description

The reply to a clipboard write request.

This is a sized struct; set size to sizeof(GhosttyClipboardWriteReply). The reply is borrowed only for the duration of the reply call and may be freed as soon as it returns.

The result answers the program with the matching protocol status for protocols with a write acknowledgement (OSC 5522: DONE, EPERM, ENOSYS, EBUSY, EINVAL, EIO); protocols without one (OSC 52, OSC 1337 Copy) discard the reply. remember is ignored on any result other than GHOSTTY_CLIPBOARD_WRITE_RESULT_SUCCESS.

Definition at line 506 of file terminal.h.

Field Documentation

◆ remember

bool remember

Record a session grant so future requests from the same program skip the permission prompt. Only honored on success when GhosttyClipboardWrite::can_remember is set.

Definition at line 518 of file terminal.h.

◆ result

Outcome of the write.

Definition at line 511 of file terminal.h.

◆ size

size_t size

Size of this struct in bytes.

Definition at line 508 of file terminal.h.


The documentation for this struct was generated from the following file: