libghostty-vt 0.0.0
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. Initialize it with GHOSTTY_INIT_SIZED(), then set the fields you need. See Sized Structs.

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.

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

Definition at line 222 of file selection.h.

Field Documentation

◆ ref

Grid reference under which to derive the line selection.

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

Definition at line 227 of file selection.h.

◆ semantic_prompt_boundary

bool semantic_prompt_boundary

Whether semantic prompt state changes should bound the line selection.

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

Definition at line 236 of file selection.h.

◆ size

size_t size

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

Definition at line 224 of file selection.h.

◆ whitespace

const uint32_t* whitespace

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

Definition at line 230 of file selection.h.

◆ whitespace_len

size_t whitespace_len

Number of entries in whitespace.

Definition at line 233 of file selection.h.


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