libghostty
Loading...
Searching...
No Matches
GhosttyRenderStateCursor Struct Reference

#include <ghostty/vt/render.h>

Data Fields

size_t size
bool viewport_has_value
uint16_t viewport_x
uint16_t viewport_y
bool wide_tail
bool visible
bool blinking
bool password_input
GhosttyRenderStateCursorVisualStyle visual_style

Detailed Description

Render-state cursor information.

This struct uses the sized-struct ABI pattern. Initialize with GHOSTTY_INIT_SIZED(GhosttyRenderStateCursor) before querying GHOSTTY_RENDER_STATE_DATA_CURSOR.

When viewport_has_value is false, viewport_x, viewport_y, and wide_tail contain undefined data and must not be read.

Definition at line 315 of file render.h.

Field Documentation

◆ blinking

bool blinking

Whether the cursor should blink based on terminal modes.

Definition at line 335 of file render.h.

◆ password_input

bool password_input

Whether the cursor is at a password input field.

Definition at line 338 of file render.h.

◆ size

size_t size

Size of this struct in bytes. Must be set to sizeof(GhosttyRenderStateCursor).

Definition at line 317 of file render.h.

◆ viewport_has_value

bool viewport_has_value

Whether the cursor is visible within the viewport.

Definition at line 320 of file render.h.

◆ viewport_x

uint16_t viewport_x

Cursor viewport x position in cells.

Definition at line 323 of file render.h.

◆ viewport_y

uint16_t viewport_y

Cursor viewport y position in cells.

Definition at line 326 of file render.h.

◆ visible

bool visible

Whether the cursor is visible based on terminal modes.

Definition at line 332 of file render.h.

◆ visual_style

The visual style of the cursor.

Definition at line 341 of file render.h.

◆ wide_tail

bool wide_tail

Whether the cursor is on the tail of a wide character.

Definition at line 329 of file render.h.


The documentation for this struct was generated from the following file: