libghostty
Loading...
Searching...
No Matches
osc.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <ghostty/vt/result.h>
#include <ghostty/vt/allocator.h>

Go to the source code of this file.

Typedefs

typedef struct GhosttyOscParserGhosttyOscParser
typedef struct GhosttyOscCommandGhosttyOscCommand

Enumerations

enum  GhosttyOscCommandType
enum  GhosttyOscCommandData { GHOSTTY_OSC_DATA_INVALID = 0 , GHOSTTY_OSC_DATA_CHANGE_WINDOW_TITLE_STR = 1 }

Functions

GhosttyResult ghostty_osc_new (const GhosttyAllocator *allocator, GhosttyOscParser *parser)
void ghostty_osc_free (GhosttyOscParser parser)
void ghostty_osc_reset (GhosttyOscParser parser)
void ghostty_osc_next (GhosttyOscParser parser, uint8_t byte)
GhosttyOscCommand ghostty_osc_end (GhosttyOscParser parser, uint8_t terminator)
GhosttyOscCommandType ghostty_osc_command_type (GhosttyOscCommand command)
bool ghostty_osc_command_data (GhosttyOscCommand command, GhosttyOscCommandData data, void *out)

Detailed Description

OSC (Operating System Command) sequence parser and command handling.

Definition in file osc.h.