Render state already tracks the selected cell range for each viewport row, but C renderers could only get the full terminal selection. That required consumers to map global selection pins back into row-local spans themselves. Add row selection data to the render-state row API. Querying the new row data returns GHOSTTY_NO_VALUE for unselected rows and writes the inclusive start and end columns for selected rows. The render example now demonstrates setting a selection and reading the row-local range while iterating rows. |
||
|---|---|---|
| .. | ||
| c-vt | ||
| c-vt-build-info | ||
| c-vt-cmake | ||
| c-vt-cmake-cross | ||
| c-vt-cmake-static | ||
| c-vt-colors | ||
| c-vt-effects | ||
| c-vt-encode-focus | ||
| c-vt-encode-key | ||
| c-vt-encode-mouse | ||
| c-vt-formatter | ||
| c-vt-grid-ref-tracked | ||
| c-vt-grid-traverse | ||
| c-vt-kitty-graphics | ||
| c-vt-modes | ||
| c-vt-paste | ||
| c-vt-render | ||
| c-vt-sgr | ||
| c-vt-size-report | ||
| c-vt-static | ||
| c-vt-stream | ||
| cpp-vt-stream | ||
| swift-vt-xcframework | ||
| wasm-key-encode | ||
| wasm-sgr | ||
| wasm-vt | ||
| zig-formatter | ||
| zig-vt | ||
| zig-vt-stream | ||
| .gitignore | ||
| AGENTS.md | ||
| README.md | ||
README.md
Examples
Standalone projects demonstrating the Ghostty library APIs.
The directories starting with c- use the C API and the directories
starting with zig- use the Zig API.
Every example can be built and run using zig build and zig build run
from within the respective example directory.
Even the C API examples use the Zig build system (not the language) to
build the project.
Running an Example
cd example/<dir>
zig build run