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

#include <ghostty/vt/selection.h>

Data Fields

size_t size
GhosttyGridRef ref
const uint32_t * whitespace
size_t whitespace_len
bool semantic_prompt_boundary

Detailed Description

Options for deriving a line selection from a terminal grid reference.

This is a sized struct. Use GHOSTTY_INIT_SIZED() to initialize it. If whitespace is NULL and whitespace_len is 0, Ghostty's default line-trim whitespace codepoints are used. If whitespace_len is non-zero, whitespace must not be NULL.

Definition at line 180 of file selection.h.

Field Documentation

◆ ref

Grid reference under which to derive the line selection.

Definition at line 185 of file selection.h.

◆ semantic_prompt_boundary

bool semantic_prompt_boundary

Whether semantic prompt state changes should bound the line selection.

Definition at line 194 of file selection.h.

◆ size

size_t size

Size of this struct in bytes. Must be set to sizeof(GhosttyTerminalSelectLineOptions).

Definition at line 182 of file selection.h.

◆ whitespace

const uint32_t* whitespace

Optional codepoints to trim from the start and end of the line.

Definition at line 188 of file selection.h.

◆ whitespace_len

size_t whitespace_len

Number of entries in whitespace.

Definition at line 191 of file selection.h.


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