libghostty-vt 0.0.0
Loading...
Searching...
No Matches
GhosttyTerminalSelectWordBetweenOptions Struct Reference

#include <ghostty/vt/selection.h>

Data Fields

size_t size
GhosttyGridRef start
GhosttyGridRef end
const uint32_t * boundary_codepoints
size_t boundary_codepoints_len

Detailed Description

Options for deriving the nearest word selection between two grid references.

This is a sized struct. Initialize it with GHOSTTY_INIT_SIZED(), then set the fields you need. See Sized Structs.

If boundary_codepoints is NULL and boundary_codepoints_len is 0, Ghostty's default word-boundary codepoints are used. If boundary_codepoints_len is non-zero, boundary_codepoints must not be NULL.

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

Definition at line 193 of file selection.h.

Field Documentation

◆ boundary_codepoints

const uint32_t* boundary_codepoints

Optional word-boundary codepoints as uint32_t scalar values.

Definition at line 204 of file selection.h.

◆ boundary_codepoints_len

size_t boundary_codepoints_len

Number of entries in boundary_codepoints.

Definition at line 207 of file selection.h.

◆ end

Ending grid reference for the inclusive search range.

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

Definition at line 201 of file selection.h.

◆ size

size_t size

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

Definition at line 195 of file selection.h.

◆ start

Starting grid reference for the inclusive search range.

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

Definition at line 198 of file selection.h.


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