Skip to main content

ghostty_sgr_attribute_value

Function ghostty_sgr_attribute_value 

Source
pub unsafe extern "C" fn ghostty_sgr_attribute_value(
    attr: *mut SgrAttribute,
) -> *mut SgrAttributeValue
Expand description

Get the value from an SGR attribute.

This function returns a pointer to the value union from an SGR attribute. Use the tag to determine which field of the union is valid. Primarily useful in WebAssembly environments where accessing struct fields directly is difficult.