libghostty
Loading...
Searching...
No Matches
sgr.h File Reference
#include <ghostty/vt/allocator.h>
#include <ghostty/vt/color.h>
#include <ghostty/vt/types.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

Enumerations

enum  GhosttySgrAttributeTag
enum  GhosttySgrUnderline

Functions

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

Detailed Description

SGR (Select Graphic Rendition) attribute parsing and handling.

Definition in file sgr.h.