libghostty
Loading...
Searching...
No Matches
osc.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_OSC_H
8#define GHOSTTY_VT_OSC_H
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
13#include <ghostty/vt/result.h>
15
25
35
56
62typedef enum {
63 GHOSTTY_OSC_COMMAND_INVALID = 0,
64 GHOSTTY_OSC_COMMAND_CHANGE_WINDOW_TITLE = 1,
65 GHOSTTY_OSC_COMMAND_CHANGE_WINDOW_ICON = 2,
66 GHOSTTY_OSC_COMMAND_PROMPT_START = 3,
67 GHOSTTY_OSC_COMMAND_PROMPT_END = 4,
68 GHOSTTY_OSC_COMMAND_END_OF_INPUT = 5,
69 GHOSTTY_OSC_COMMAND_END_OF_COMMAND = 6,
70 GHOSTTY_OSC_COMMAND_CLIPBOARD_CONTENTS = 7,
71 GHOSTTY_OSC_COMMAND_REPORT_PWD = 8,
72 GHOSTTY_OSC_COMMAND_MOUSE_SHAPE = 9,
73 GHOSTTY_OSC_COMMAND_COLOR_OPERATION = 10,
74 GHOSTTY_OSC_COMMAND_KITTY_COLOR_PROTOCOL = 11,
75 GHOSTTY_OSC_COMMAND_SHOW_DESKTOP_NOTIFICATION = 12,
76 GHOSTTY_OSC_COMMAND_HYPERLINK_START = 13,
77 GHOSTTY_OSC_COMMAND_HYPERLINK_END = 14,
78 GHOSTTY_OSC_COMMAND_CONEMU_SLEEP = 15,
79 GHOSTTY_OSC_COMMAND_CONEMU_SHOW_MESSAGE_BOX = 16,
80 GHOSTTY_OSC_COMMAND_CONEMU_CHANGE_TAB_TITLE = 17,
81 GHOSTTY_OSC_COMMAND_CONEMU_PROGRESS_REPORT = 18,
82 GHOSTTY_OSC_COMMAND_CONEMU_WAIT_INPUT = 19,
83 GHOSTTY_OSC_COMMAND_CONEMU_GUIMACRO = 20,
85
94typedef enum {
97
110
125
137
150
166void ghostty_osc_next(GhosttyOscParser parser, uint8_t byte);
167
197
211
228
230
231#endif /* GHOSTTY_VT_OSC_H */
GhosttyOscCommandType ghostty_osc_command_type(GhosttyOscCommand command)
struct GhosttyOscCommand * GhosttyOscCommand
Definition osc.h:34
struct GhosttyOscParser * GhosttyOscParser
Definition osc.h:24
bool ghostty_osc_command_data(GhosttyOscCommand command, GhosttyOscCommandData data, void *out)
void ghostty_osc_reset(GhosttyOscParser parser)
GhosttyOscCommandData
Definition osc.h:94
GhosttyOscCommandType
Definition osc.h:62
void ghostty_osc_next(GhosttyOscParser parser, uint8_t byte)
GhosttyOscCommand ghostty_osc_end(GhosttyOscParser parser, uint8_t terminator)
void ghostty_osc_free(GhosttyOscParser parser)
GhosttyResult ghostty_osc_new(const GhosttyAllocator *allocator, GhosttyOscParser *parser)
@ GHOSTTY_OSC_DATA_INVALID
Definition osc.h:96
@ GHOSTTY_OSC_DATA_CHANGE_WINDOW_TITLE_STR
Definition osc.h:108
GhosttyResult
Definition result.h:13