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
42typedef uint64_t GhosttyCell;
43
53typedef uint64_t GhosttyRow;
54
65typedef struct {
68
70 size_t len;
72
80typedef enum GHOSTTY_ENUM_TYPED {
83
86
89
92 GHOSTTY_CELL_CONTENT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
94
102typedef enum GHOSTTY_ENUM_TYPED {
105
108
111
114 GHOSTTY_CELL_WIDE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
116
125typedef enum GHOSTTY_ENUM_TYPED {
128
131
134 GHOSTTY_CELL_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
136
145typedef enum GHOSTTY_ENUM_TYPED {
148
155
162
169
176
183
190
197
204
211
219
227 GHOSTTY_CELL_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
229
238typedef enum GHOSTTY_ENUM_TYPED {
241
244
247 GHOSTTY_ROW_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
249
258typedef enum GHOSTTY_ENUM_TYPED {
261
268
275
282
289
296
303
310
317 GHOSTTY_ROW_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
319
337 GhosttyCellData data,
338 void *out);
339
362 size_t count,
363 const GhosttyCellData* keys,
364 void** values,
365 size_t* out_written);
366
384 GhosttyRowData data,
385 void *out);
386
409 size_t count,
410 const GhosttyRowData* keys,
411 void** values,
412 size_t* out_written);
413
415
416#ifdef __cplusplus
417}
418#endif
419
420#endif /* GHOSTTY_VT_SCREEN_H */
GhosttyCellData
Definition screen.h:145
GHOSTTY_API GhosttyResult ghostty_cell_get(GhosttyCell cell, GhosttyCellData data, void *out)
GhosttyRowSemanticPrompt
Definition screen.h:238
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:258
GhosttyCellSemanticContent
Definition screen.h:125
GhosttyCellContentTag
Definition screen.h:80
uint64_t GhosttyRow
Definition screen.h:53
GhosttyCellWide
Definition screen.h:102
uint64_t GhosttyCell
Definition screen.h:42
@ GHOSTTY_CELL_DATA_SEMANTIC_CONTENT
Definition screen.h:210
@ GHOSTTY_CELL_DATA_COLOR_RGB
Definition screen.h:226
@ GHOSTTY_CELL_DATA_COLOR_PALETTE
Definition screen.h:218
@ GHOSTTY_CELL_DATA_CONTENT_TAG
Definition screen.h:161
@ GHOSTTY_CELL_DATA_WIDE
Definition screen.h:168
@ GHOSTTY_CELL_DATA_PROTECTED
Definition screen.h:203
@ GHOSTTY_CELL_DATA_HAS_TEXT
Definition screen.h:175
@ GHOSTTY_CELL_DATA_CODEPOINT
Definition screen.h:154
@ GHOSTTY_CELL_DATA_HAS_HYPERLINK
Definition screen.h:196
@ GHOSTTY_CELL_DATA_HAS_STYLING
Definition screen.h:182
@ GHOSTTY_CELL_DATA_INVALID
Definition screen.h:147
@ GHOSTTY_CELL_DATA_STYLE_ID
Definition screen.h:189
@ GHOSTTY_ROW_SEMANTIC_NONE
Definition screen.h:240
@ GHOSTTY_ROW_SEMANTIC_PROMPT_CONTINUATION
Definition screen.h:246
@ GHOSTTY_ROW_SEMANTIC_PROMPT
Definition screen.h:243
@ GHOSTTY_ROW_DATA_STYLED
Definition screen.h:288
@ GHOSTTY_ROW_DATA_WRAP
Definition screen.h:267
@ GHOSTTY_ROW_DATA_DIRTY
Definition screen.h:316
@ GHOSTTY_ROW_DATA_WRAP_CONTINUATION
Definition screen.h:274
@ GHOSTTY_ROW_DATA_GRAPHEME
Definition screen.h:281
@ GHOSTTY_ROW_DATA_HYPERLINK
Definition screen.h:295
@ GHOSTTY_ROW_DATA_INVALID
Definition screen.h:260
@ GHOSTTY_ROW_DATA_SEMANTIC_PROMPT
Definition screen.h:302
@ GHOSTTY_ROW_DATA_KITTY_VIRTUAL_PLACEHOLDER
Definition screen.h:309
@ GHOSTTY_CELL_SEMANTIC_INPUT
Definition screen.h:130
@ GHOSTTY_CELL_SEMANTIC_OUTPUT
Definition screen.h:127
@ GHOSTTY_CELL_SEMANTIC_PROMPT
Definition screen.h:133
@ GHOSTTY_CELL_CONTENT_CODEPOINT_GRAPHEME
Definition screen.h:85
@ GHOSTTY_CELL_CONTENT_BG_COLOR_PALETTE
Definition screen.h:88
@ GHOSTTY_CELL_CONTENT_BG_COLOR_RGB
Definition screen.h:91
@ GHOSTTY_CELL_CONTENT_CODEPOINT
Definition screen.h:82
@ GHOSTTY_CELL_WIDE_NARROW
Definition screen.h:104
@ GHOSTTY_CELL_WIDE_SPACER_HEAD
Definition screen.h:113
@ GHOSTTY_CELL_WIDE_SPACER_TAIL
Definition screen.h:110
@ GHOSTTY_CELL_WIDE_WIDE
Definition screen.h:107
const GhosttyCell * ptr
Definition screen.h:67
GhosttyResult
Definition types.h:88
#define GHOSTTY_ENUM_TYPED
Definition types.h:81