libghostty
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_SCREEN_H
8#define GHOSTTY_VT_SCREEN_H
9
10#include <stdbool.h>
11#include <stdint.h>
12#include <ghostty/vt/color.h>
13#include <ghostty/vt/types.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
30
40typedef uint64_t GhosttyCell;
41
51typedef uint64_t GhosttyRow;
52
60typedef enum GHOSTTY_ENUM_TYPED {
63
66
69
72 GHOSTTY_CELL_CONTENT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
74
82typedef enum GHOSTTY_ENUM_TYPED {
85
88
91
94 GHOSTTY_CELL_WIDE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
96
105typedef enum GHOSTTY_ENUM_TYPED {
108
111
114 GHOSTTY_CELL_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
116
125typedef enum GHOSTTY_ENUM_TYPED {
128
135
142
149
156
163
170
177
184
191
199
207 GHOSTTY_CELL_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
209
218typedef enum GHOSTTY_ENUM_TYPED {
221
224
227 GHOSTTY_ROW_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
229
238typedef enum GHOSTTY_ENUM_TYPED {
241
248
255
262
269
276
283
290
297 GHOSTTY_ROW_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
299
317 GhosttyCellData data,
318 void *out);
319
342 size_t count,
343 const GhosttyCellData* keys,
344 void** values,
345 size_t* out_written);
346
364 GhosttyRowData data,
365 void *out);
366
389 size_t count,
390 const GhosttyRowData* keys,
391 void** values,
392 size_t* out_written);
393
395
396#ifdef __cplusplus
397}
398#endif
399
400#endif /* GHOSTTY_VT_SCREEN_H */
GhosttyCellData
Definition screen.h:125
GHOSTTY_API GhosttyResult ghostty_cell_get(GhosttyCell cell, GhosttyCellData data, void *out)
GhosttyRowSemanticPrompt
Definition screen.h:218
GHOSTTY_API GhosttyResult ghostty_row_get_multi(GhosttyRow row, size_t count, const GhosttyRowData *keys, void **values, size_t *out_written)
GHOSTTY_API GhosttyResult ghostty_row_get(GhosttyRow row, GhosttyRowData data, void *out)
GHOSTTY_API GhosttyResult ghostty_cell_get_multi(GhosttyCell cell, size_t count, const GhosttyCellData *keys, void **values, size_t *out_written)
GhosttyRowData
Definition screen.h:238
GhosttyCellSemanticContent
Definition screen.h:105
GhosttyCellContentTag
Definition screen.h:60
uint64_t GhosttyRow
Definition screen.h:51
GhosttyCellWide
Definition screen.h:82
uint64_t GhosttyCell
Definition screen.h:40
@ GHOSTTY_CELL_DATA_SEMANTIC_CONTENT
Definition screen.h:190
@ GHOSTTY_CELL_DATA_COLOR_RGB
Definition screen.h:206
@ GHOSTTY_CELL_DATA_COLOR_PALETTE
Definition screen.h:198
@ GHOSTTY_CELL_DATA_CONTENT_TAG
Definition screen.h:141
@ GHOSTTY_CELL_DATA_WIDE
Definition screen.h:148
@ GHOSTTY_CELL_DATA_PROTECTED
Definition screen.h:183
@ GHOSTTY_CELL_DATA_HAS_TEXT
Definition screen.h:155
@ GHOSTTY_CELL_DATA_CODEPOINT
Definition screen.h:134
@ GHOSTTY_CELL_DATA_HAS_HYPERLINK
Definition screen.h:176
@ GHOSTTY_CELL_DATA_HAS_STYLING
Definition screen.h:162
@ GHOSTTY_CELL_DATA_INVALID
Definition screen.h:127
@ GHOSTTY_CELL_DATA_STYLE_ID
Definition screen.h:169
@ GHOSTTY_ROW_SEMANTIC_NONE
Definition screen.h:220
@ GHOSTTY_ROW_SEMANTIC_PROMPT_CONTINUATION
Definition screen.h:226
@ GHOSTTY_ROW_SEMANTIC_PROMPT
Definition screen.h:223
@ GHOSTTY_ROW_DATA_STYLED
Definition screen.h:268
@ GHOSTTY_ROW_DATA_WRAP
Definition screen.h:247
@ GHOSTTY_ROW_DATA_DIRTY
Definition screen.h:296
@ GHOSTTY_ROW_DATA_WRAP_CONTINUATION
Definition screen.h:254
@ GHOSTTY_ROW_DATA_GRAPHEME
Definition screen.h:261
@ GHOSTTY_ROW_DATA_HYPERLINK
Definition screen.h:275
@ GHOSTTY_ROW_DATA_INVALID
Definition screen.h:240
@ GHOSTTY_ROW_DATA_SEMANTIC_PROMPT
Definition screen.h:282
@ GHOSTTY_ROW_DATA_KITTY_VIRTUAL_PLACEHOLDER
Definition screen.h:289
@ GHOSTTY_CELL_SEMANTIC_INPUT
Definition screen.h:110
@ GHOSTTY_CELL_SEMANTIC_OUTPUT
Definition screen.h:107
@ GHOSTTY_CELL_SEMANTIC_PROMPT
Definition screen.h:113
@ GHOSTTY_CELL_CONTENT_CODEPOINT_GRAPHEME
Definition screen.h:65
@ GHOSTTY_CELL_CONTENT_BG_COLOR_PALETTE
Definition screen.h:68
@ GHOSTTY_CELL_CONTENT_BG_COLOR_RGB
Definition screen.h:71
@ GHOSTTY_CELL_CONTENT_CODEPOINT
Definition screen.h:62
@ GHOSTTY_CELL_WIDE_NARROW
Definition screen.h:84
@ GHOSTTY_CELL_WIDE_SPACER_HEAD
Definition screen.h:93
@ GHOSTTY_CELL_WIDE_SPACER_TAIL
Definition screen.h:90
@ GHOSTTY_CELL_WIDE_WIDE
Definition screen.h:87
GhosttyResult
Definition types.h:74
#define GHOSTTY_ENUM_TYPED
Definition types.h:67