mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-25 06:18:37 +00:00
Add terminal set/get support for the active screen selection through the existing option and data APIs. Setting a selection copies the C snapshot into terminal-owned tracked state, while passing NULL clears the current selection. Getting the selection now returns an untracked GhosttySelection snapshot or GHOSTTY_NO_VALUE when there is no selection. The C header documents the different lifetimes for set and get so embedders know when input and returned grid references remain valid.