libghostty
Loading...
Searching...
No Matches
size_report.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_SIZE_REPORT_H
8#define GHOSTTY_VT_SIZE_REPORT_H
9
29
30#include <stddef.h>
31#include <stdint.h>
32#include <ghostty/vt/types.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
43typedef enum GHOSTTY_ENUM_TYPED {
57 GHOSTTY_SIZE_REPORT_STYLE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
59
63typedef struct {
65 uint16_t rows;
67 uint16_t columns;
69 uint32_t cell_width;
71 uint32_t cell_height;
73
96 char* buf,
97 size_t buf_len,
98 size_t* out_written);
99
100#ifdef __cplusplus
101}
102#endif
103
105
106#endif /* GHOSTTY_VT_SIZE_REPORT_H */
GHOSTTY_API GhosttyResult ghostty_size_report_encode(GhosttySizeReportStyle style, GhosttySizeReportSize size, char *buf, size_t buf_len, size_t *out_written)
GhosttySizeReportStyle
Definition size_report.h:43
@ GHOSTTY_SIZE_REPORT_CSI_14_T
Definition size_report.h:47
@ GHOSTTY_SIZE_REPORT_MODE_2048
Definition size_report.h:45
@ GHOSTTY_SIZE_REPORT_CSI_18_T
Definition size_report.h:51
@ GHOSTTY_SIZE_REPORT_CSI_16_T
Definition size_report.h:49
@ GHOSTTY_SIZE_REPORT_CSI_19_T
Definition size_report.h:56
GhosttyResult
Definition types.h:88
#define GHOSTTY_ENUM_TYPED
Definition types.h:81