libghostty
Loading...
Searching...
No Matches
Style

Detailed Description

Terminal cell style attributes.

A style describes the visual attributes of a terminal cell, including foreground, background, and underline colors, as well as flags for bold, italic, underline, and other text decorations.

Typedefs

typedef uint16_t GhosttyStyleId

Enumerations

enum  GhosttyStyleColorTag

Functions

void ghostty_style_default (GhosttyStyle *style)
bool ghostty_style_is_default (const GhosttyStyle *style)

Data Structures

union  GhosttyStyleColorValue
struct  GhosttyStyleColor
struct  GhosttyStyle

Typedef Documentation

◆ GhosttyStyleId

typedef uint16_t GhosttyStyleId

Style identifier type.

Used to look up the full style from a grid reference. Obtain this from a cell via GHOSTTY_CELL_DATA_STYLE_ID.

Definition at line 39 of file style.h.

Enumeration Type Documentation

◆ GhosttyStyleColorTag

Style color tags.

These values identify the type of color in a style color. Use the tag to determine which field in the color value union to access.

Definition at line 49 of file style.h.

Function Documentation

◆ ghostty_style_default()

void ghostty_style_default ( GhosttyStyle * style)

Get the default style.

Initializes the style to the default values (no colors, no flags).

Parameters
StylePointer to the style to initialize

◆ ghostty_style_is_default()

bool ghostty_style_is_default ( const GhosttyStyle * style)

Check if a style is the default style.

Returns true if all colors are unset and all flags are off.

Parameters
StylePointer to the style to check
Returns
true if the style is the default style