pub const SELECTION: Type = 31;Expand description
The active screen’s current selection.
On success, writes an untracked snapshot of the terminal-owned selection to the caller-provided GhosttySelection. The GhosttySelection struct is caller-owned and may be kept, but the grid references inside it are untracked borrowed references into the active screen. They are only valid until the next mutating terminal call, such as ghostty_terminal_set(), ghostty_terminal_vt_write(), ghostty_terminal_resize(), or ghostty_terminal_reset().
Returns GHOSTTY_NO_VALUE when there is no active selection.
Output type: GhosttySelection *