![]() |
libghostty-vt 0.0.0
|
#include <ghostty/vt/selection.h>
Data Fields | |
| size_t | size |
| GhosttyGridRef | ref |
| const uint32_t * | whitespace |
| size_t | whitespace_len |
| bool | semantic_prompt_boundary |
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.
Definition at line 222 of file selection.h.
| GhosttyGridRef ref |
Grid reference under which to derive the line selection.
Definition at line 227 of file selection.h.
| bool semantic_prompt_boundary |
Whether semantic prompt state changes should bound the line selection.
Definition at line 236 of file selection.h.
| size_t size |
Size of this struct in bytes. Must be set to sizeof(GhosttyTerminalSelectLineOptions).
Definition at line 224 of file selection.h.
| const uint32_t* whitespace |
Optional codepoints to trim from the start and end of the line.
Definition at line 230 of file selection.h.
| size_t whitespace_len |
Number of entries in whitespace.
Definition at line 233 of file selection.h.