Skip to main content

ghostty_color_parse

Function ghostty_color_parse 

Source
pub unsafe extern "C" fn ghostty_color_parse(
    value: *const c_char,
    len: usize,
    out: *mut ColorRgb,
) -> Type
Expand description

Parse a flexible Ghostty color value.

Accepts Ghostty’s terminal color syntax: X11 color names, hex colors in 3-, 6-, 9-, or 12-digit form (the leading # is optional for 3- and 6-digit values), and rgb:// or rgbi:// specifications. Leading and trailing spaces and tabs are trimmed.

fails or @p value is NULL