libghostty-vt 0.0.0
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
44
56typedef uint64_t GhosttyCell;
57
67typedef uint64_t GhosttyRow;
68
79typedef struct {
82
84 size_t len;
86
94typedef enum GHOSTTY_ENUM_TYPED {
97
100
103
106 GHOSTTY_CELL_CONTENT_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
108
116typedef enum GHOSTTY_ENUM_TYPED {
119
122
125
128 GHOSTTY_CELL_WIDE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
130
139typedef enum GHOSTTY_ENUM_TYPED {
142
145
148 GHOSTTY_CELL_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
150
159typedef enum GHOSTTY_ENUM_TYPED {
162
169
176
183
190
197
204
211
218
225
233
241 GHOSTTY_CELL_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
243
252typedef enum GHOSTTY_ENUM_TYPED {
255
258
261 GHOSTTY_ROW_SEMANTIC_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
263
272typedef enum GHOSTTY_ENUM_TYPED {
275
282
289
296
303
310
317
324
331 GHOSTTY_ROW_DATA_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
333
352 GhosttyCellData data,
353 void *out);
354
385 size_t count,
386 const GhosttyCellData* keys,
387 void** values,
388 size_t* out_written);
389
408 GhosttyRowData data,
409 void *out);
410
441 size_t count,
442 const GhosttyRowData* keys,
443 void** values,
444 size_t* out_written);
445
447
448#ifdef __cplusplus
449}
450#endif
451
452#endif /* GHOSTTY_VT_SCREEN_H */
GhosttyResult
Definition types.h:143
#define GHOSTTY_ENUM_TYPED
Definition types.h:124
GhosttyCellData
Definition screen.h:159
GHOSTTY_API GhosttyResult ghostty_cell_get(GhosttyCell cell, GhosttyCellData data, void *out)
GhosttyRowSemanticPrompt
Definition screen.h:252
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:272
GhosttyCellSemanticContent
Definition screen.h:139
GhosttyCellContentTag
Definition screen.h:94
uint64_t GhosttyRow
Definition screen.h:67
GhosttyCellWide
Definition screen.h:116
uint64_t GhosttyCell
Definition screen.h:56
@ GHOSTTY_CELL_DATA_SEMANTIC_CONTENT
Definition screen.h:224
@ GHOSTTY_CELL_DATA_COLOR_RGB
Definition screen.h:240
@ GHOSTTY_CELL_DATA_COLOR_PALETTE
Definition screen.h:232
@ GHOSTTY_CELL_DATA_CONTENT_TAG
Definition screen.h:175
@ GHOSTTY_CELL_DATA_WIDE
Definition screen.h:182
@ GHOSTTY_CELL_DATA_PROTECTED
Definition screen.h:217
@ GHOSTTY_CELL_DATA_HAS_TEXT
Definition screen.h:189
@ GHOSTTY_CELL_DATA_CODEPOINT
Definition screen.h:168
@ GHOSTTY_CELL_DATA_HAS_HYPERLINK
Definition screen.h:210
@ GHOSTTY_CELL_DATA_HAS_STYLING
Definition screen.h:196
@ GHOSTTY_CELL_DATA_INVALID
Definition screen.h:161
@ GHOSTTY_CELL_DATA_STYLE_ID
Definition screen.h:203
@ GHOSTTY_ROW_SEMANTIC_NONE
Definition screen.h:254
@ GHOSTTY_ROW_SEMANTIC_PROMPT_CONTINUATION
Definition screen.h:260
@ GHOSTTY_ROW_SEMANTIC_PROMPT
Definition screen.h:257
@ GHOSTTY_ROW_DATA_STYLED
Definition screen.h:302
@ GHOSTTY_ROW_DATA_WRAP
Definition screen.h:281
@ GHOSTTY_ROW_DATA_DIRTY
Definition screen.h:330
@ GHOSTTY_ROW_DATA_WRAP_CONTINUATION
Definition screen.h:288
@ GHOSTTY_ROW_DATA_GRAPHEME
Definition screen.h:295
@ GHOSTTY_ROW_DATA_HYPERLINK
Definition screen.h:309
@ GHOSTTY_ROW_DATA_INVALID
Definition screen.h:274
@ GHOSTTY_ROW_DATA_SEMANTIC_PROMPT
Definition screen.h:316
@ GHOSTTY_ROW_DATA_KITTY_VIRTUAL_PLACEHOLDER
Definition screen.h:323
@ GHOSTTY_CELL_SEMANTIC_INPUT
Definition screen.h:144
@ GHOSTTY_CELL_SEMANTIC_OUTPUT
Definition screen.h:141
@ GHOSTTY_CELL_SEMANTIC_PROMPT
Definition screen.h:147
@ GHOSTTY_CELL_CONTENT_CODEPOINT_GRAPHEME
Definition screen.h:99
@ GHOSTTY_CELL_CONTENT_BG_COLOR_PALETTE
Definition screen.h:102
@ GHOSTTY_CELL_CONTENT_BG_COLOR_RGB
Definition screen.h:105
@ GHOSTTY_CELL_CONTENT_CODEPOINT
Definition screen.h:96
@ GHOSTTY_CELL_WIDE_NARROW
Definition screen.h:118
@ GHOSTTY_CELL_WIDE_SPACER_HEAD
Definition screen.h:127
@ GHOSTTY_CELL_WIDE_SPACER_TAIL
Definition screen.h:124
@ GHOSTTY_CELL_WIDE_WIDE
Definition screen.h:121
const GhosttyCell * ptr
Definition screen.h:81