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

#include <ghostty/vt/selection.h>

Data Fields

GhosttySelectionptr
size_t cap
size_t len

Detailed Description

A caller-provided buffer of selections.

This follows the same conventions as GhosttyBuffer: ptr may be NULL with cap 0 to query the required capacity. APIs that fill this type set len to the number of entries written on GHOSTTY_SUCCESS, or to the required entry capacity on GHOSTTY_OUT_OF_SPACE.

Examples
c-vt-search/src/main.c.

Definition at line 129 of file selection.h.

Field Documentation

◆ cap

size_t cap

Capacity of ptr in entries.

Definition at line 135 of file selection.h.

◆ len

size_t len

Entries written on success, or required entry capacity on GHOSTTY_OUT_OF_SPACE.

Examples
c-vt-search/src/main.c.

Definition at line 139 of file selection.h.

◆ ptr

Destination buffer for selections. May be NULL when cap is 0 to query the required capacity.

Definition at line 132 of file selection.h.


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