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

Go to the source code of this file.

Data Structures

struct  GhosttySgrUnknown
union  GhosttySgrAttributeValue
struct  GhosttySgrAttribute

Typedefs

typedef struct GhosttySgrParserGhosttySgrParser

Enumerations

enum  GhosttySgrAttributeTag
enum  GhosttySgrUnderline

Functions

GhosttyResult ghostty_sgr_new (const GhosttyAllocator *allocator, GhosttySgrParser *parser)
void ghostty_sgr_free (GhosttySgrParser parser)
void ghostty_sgr_reset (GhosttySgrParser parser)
GhosttyResult ghostty_sgr_set_params (GhosttySgrParser parser, const uint16_t *params, const char *separators, size_t len)
bool ghostty_sgr_next (GhosttySgrParser parser, GhosttySgrAttribute *attr)
size_t ghostty_sgr_unknown_full (GhosttySgrUnknown unknown, const uint16_t **ptr)
size_t ghostty_sgr_unknown_partial (GhosttySgrUnknown unknown, const uint16_t **ptr)
GhosttySgrAttributeTag ghostty_sgr_attribute_tag (GhosttySgrAttribute attr)
GhosttySgrAttributeValueghostty_sgr_attribute_value (GhosttySgrAttribute *attr)
GhosttySgrAttributeghostty_wasm_alloc_sgr_attribute (void)
void ghostty_wasm_free_sgr_attribute (GhosttySgrAttribute *attr)

Detailed Description

SGR (Select Graphic Rendition) attribute parsing and handling.

Definition in file sgr.h.