![]() |
libghostty-vt 0.0.0
|
Name a grid position in the active area, viewport, screen, or history. More...
Name a grid position in the active area, viewport, screen, or history.
A GhosttyPoint names a position in the terminal grid, in one of four coordinate systems: the active area, the viewport, the full screen, or the scrollback history.
You need one to find a cell. The same row has a different number in each system, so pick the one that matches what you're asking. Resolve a point to a cell with ghostty_terminal_grid_ref().
Full program: c-vt-grid-traverse/src/main.c
The Grid guide shows how they line up.
Enumerations | |
| enum | GhosttyPointTag { GHOSTTY_POINT_TAG_ACTIVE = 0 , GHOSTTY_POINT_TAG_VIEWPORT = 1 , GHOSTTY_POINT_TAG_SCREEN = 2 , GHOSTTY_POINT_TAG_HISTORY = 3 , GHOSTTY_POINT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE } |
Data Structures | |
| struct | GhosttyPointCoordinate |
| union | GhosttyPointValue |
| struct | GhosttyPoint |
| enum GhosttyPointTag |
Point reference tag.
Determines which coordinate system a point uses.