libghostty
Loading...
Searching...
No Matches
GhosttyFormatterTerminalOptions Struct Reference

#include <ghostty/vt/formatter.h>

Data Fields

size_t size
GhosttyFormatterFormat emit
bool unwrap
bool trim
GhosttyFormatterTerminalExtra extra

Detailed Description

Options for creating a terminal formatter.

Examples
c-vt-formatter/src/main.c.

Definition at line 121 of file formatter.h.

Field Documentation

◆ emit

Output format to emit.

Examples
c-vt-formatter/src/main.c.

Definition at line 126 of file formatter.h.

◆ extra

Extra terminal state to include in styled output.

Definition at line 135 of file formatter.h.

◆ size

size_t size

Size of this struct in bytes. Must be set to sizeof(GhosttyFormatterTerminalOptions).

Definition at line 123 of file formatter.h.

◆ trim

bool trim

Whether to trim trailing whitespace on non-blank lines.

Examples
c-vt-formatter/src/main.c.

Definition at line 132 of file formatter.h.

◆ unwrap

bool unwrap

Whether to unwrap soft-wrapped lines.

Definition at line 129 of file formatter.h.


The documentation for this struct was generated from the following file: