libghostty-vt 0.0.0
Loading...
Searching...
No Matches
types.h File Reference
#include <limits.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  GhosttyString
struct  GhosttyBuffer
struct  GhosttySurfacePosition
struct  GhosttyCodepoints
struct  GhosttyCodepointBuffer

Macros

#define GHOSTTY_DEPRECATED(msg)
#define GHOSTTY_ENUM_TYPED
#define GHOSTTY_IMAGE_LAYER_MASK_BELOW_BACKGROUND   (1u << GHOSTTY_IMAGE_LAYER_BELOW_BACKGROUND)
#define GHOSTTY_IMAGE_LAYER_MASK_BELOW_TEXT   (1u << GHOSTTY_IMAGE_LAYER_BELOW_TEXT)
#define GHOSTTY_IMAGE_LAYER_MASK_ABOVE_TEXT   (1u << GHOSTTY_IMAGE_LAYER_ABOVE_TEXT)
#define GHOSTTY_INIT_SIZED(type)

Typedefs

typedef struct GhosttyTerminalImpl * GhosttyTerminal
typedef struct GhosttySnapshotDecoderImpl * GhosttySnapshotDecoder
typedef struct GhosttyTrackedGridRefImpl * GhosttyTrackedGridRef
typedef struct GhosttyKittyGraphicsImpl * GhosttyKittyGraphics
typedef const struct GhosttyKittyGraphicsImageImpl * GhosttyKittyGraphicsImage
typedef struct GhosttyKittyGraphicsPlacementIteratorImpl * GhosttyKittyGraphicsPlacementIterator
typedef struct GhosttyRenderStateImpl * GhosttyRenderState
typedef struct GhosttyRenderStateRowIteratorImpl * GhosttyRenderStateRowIterator
typedef struct GhosttyRenderStateRowCellsImpl * GhosttyRenderStateRowCells
typedef struct GhosttyRenderStateImageIteratorImpl * GhosttyRenderStateImageIterator
typedef struct GhosttySearchImpl * GhosttySearch
typedef struct GhosttySgrParserImpl * GhosttySgrParser
typedef struct GhosttyFormatterImpl * GhosttyFormatter
typedef struct GhosttyOscParserImpl * GhosttyOscParser
typedef struct GhosttyOscCommandImpl * GhosttyOscCommand

Enumerations

enum  GhosttyResult {
  GHOSTTY_SUCCESS = 0 , GHOSTTY_OUT_OF_MEMORY = -1 , GHOSTTY_INVALID_VALUE = -2 , GHOSTTY_OUT_OF_SPACE = -3 ,
  GHOSTTY_NO_VALUE = -4 , GHOSTTY_IO_ERROR = -5 , GHOSTTY_LIMIT_EXCEEDED = -6 , GHOSTTY_REJECTED = -7 ,
  GHOSTTY_UNSUPPORTED = -8 , GHOSTTY_RESULT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE
}
enum  GhosttyFormatterFormat { GHOSTTY_FORMATTER_FORMAT_PLAIN = 0 , GHOSTTY_FORMATTER_FORMAT_VT = 1 , GHOSTTY_FORMATTER_FORMAT_HTML = 2 , GHOSTTY_FORMATTER_FORMAT_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE }
enum  GhosttyCursorStyle { GHOSTTY_CURSOR_STYLE_BAR = 0 , GHOSTTY_CURSOR_STYLE_BLOCK = 1 , GHOSTTY_CURSOR_STYLE_UNDERLINE = 2 , GHOSTTY_CURSOR_STYLE_BLOCK_HOLLOW = 3 , GHOSTTY_CURSOR_STYLE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE }
enum  GhosttyImageLayer { GHOSTTY_IMAGE_LAYER_BELOW_BACKGROUND = 0 , GHOSTTY_IMAGE_LAYER_BELOW_TEXT = 1 , GHOSTTY_IMAGE_LAYER_ABOVE_TEXT = 2 , GHOSTTY_IMAGE_LAYER_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE }

Functions

GHOSTTY_API void ghostty_sized_init (void *ptr, size_t size)
GHOSTTY_API const char * ghostty_type_json (void)

Detailed Description

Common types, macros, and utilities for libghostty-vt.

Definition in file types.h.