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

Go to the source code of this file.

Data Structures

struct  GhosttyFormatterScreenExtra
struct  GhosttyFormatterTerminalExtra
struct  GhosttyFormatterTerminalOptions

Typedefs

typedef struct GhosttyFormatterGhosttyFormatter

Enumerations

enum  GhosttyFormatterFormat { GHOSTTY_FORMATTER_FORMAT_PLAIN , GHOSTTY_FORMATTER_FORMAT_VT , GHOSTTY_FORMATTER_FORMAT_HTML }

Functions

GhosttyResult ghostty_formatter_terminal_new (const GhosttyAllocator *allocator, GhosttyFormatter *formatter, GhosttyTerminal terminal, GhosttyFormatterTerminalOptions options)
GhosttyResult ghostty_formatter_format_buf (GhosttyFormatter formatter, uint8_t *buf, size_t buf_len, size_t *out_written)
GhosttyResult ghostty_formatter_format_alloc (GhosttyFormatter formatter, const GhosttyAllocator *allocator, uint8_t **out_ptr, size_t *out_len)
void ghostty_formatter_free (GhosttyFormatter formatter)

Detailed Description

Format terminal content as plain text, VT sequences, or HTML.

Definition in file formatter.h.