libghostty-vt
0.0.0
Toggle main menu visibility
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
35
extern
"C"
{
36
#endif
37
43
typedef
enum
GHOSTTY_ENUM_TYPED
{
45
GHOSTTY_SIZE_REPORT_MODE_2048
= 0,
47
GHOSTTY_SIZE_REPORT_CSI_14_T
= 1,
49
GHOSTTY_SIZE_REPORT_CSI_16_T
= 2,
51
GHOSTTY_SIZE_REPORT_CSI_18_T
= 3,
56
GHOSTTY_SIZE_REPORT_CSI_19_T
= 4,
57
GHOSTTY_SIZE_REPORT_STYLE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
58
}
GhosttySizeReportStyle
;
59
63
typedef
struct
{
65
uint16_t
rows
;
67
uint16_t
columns
;
69
uint32_t
cell_width
;
71
uint32_t
cell_height
;
72
}
GhosttySizeReportSize
;
73
95
GHOSTTY_API
GhosttyResult
ghostty_size_report_encode
(
96
GhosttySizeReportStyle
style,
97
const
GhosttySizeReportSize
* size,
98
uint8_t* buf,
99
size_t
buf_len,
100
size_t
* out_written);
101
102
#ifdef __cplusplus
103
}
104
#endif
105
107
108
#endif
/* GHOSTTY_VT_SIZE_REPORT_H */
GhosttyResult
GhosttyResult
Definition
types.h:143
GHOSTTY_ENUM_TYPED
#define GHOSTTY_ENUM_TYPED
Definition
types.h:124
GhosttySizeReportStyle
GhosttySizeReportStyle
Definition
size_report.h:43
ghostty_size_report_encode
GHOSTTY_API GhosttyResult ghostty_size_report_encode(GhosttySizeReportStyle style, const GhosttySizeReportSize *size, uint8_t *buf, size_t buf_len, size_t *out_written)
GHOSTTY_SIZE_REPORT_CSI_14_T
@ GHOSTTY_SIZE_REPORT_CSI_14_T
Definition
size_report.h:47
GHOSTTY_SIZE_REPORT_MODE_2048
@ GHOSTTY_SIZE_REPORT_MODE_2048
Definition
size_report.h:45
GHOSTTY_SIZE_REPORT_CSI_18_T
@ GHOSTTY_SIZE_REPORT_CSI_18_T
Definition
size_report.h:51
GHOSTTY_SIZE_REPORT_CSI_16_T
@ GHOSTTY_SIZE_REPORT_CSI_16_T
Definition
size_report.h:49
GHOSTTY_SIZE_REPORT_CSI_19_T
@ GHOSTTY_SIZE_REPORT_CSI_19_T
Definition
size_report.h:56
GhosttySizeReportSize
Definition
size_report.h:63
GhosttySizeReportSize::cell_width
uint32_t cell_width
Definition
size_report.h:69
GhosttySizeReportSize::cell_height
uint32_t cell_height
Definition
size_report.h:71
GhosttySizeReportSize::rows
uint16_t rows
Definition
size_report.h:65
GhosttySizeReportSize::columns
uint16_t columns
Definition
size_report.h:67
types.h
include
ghostty
vt
size_report.h
Generated by
1.17.0