Skip to main content

ghostty_osc_command_data

Function ghostty_osc_command_data 

Source
pub unsafe extern "C" fn ghostty_osc_command_data(
    command: GhosttyOscCommand_ptr,
    data: GhosttyOscCommandData,
    out: *mut c_void,
) -> bool
Expand description

Extract data from an OSC command.

Extracts typed data from the given OSC command based on the specified data type. The output pointer must be of the appropriate type for the requested data kind. Valid command types, output types, and memory safety information are documented in the GhosttyOscCommandData enum.

@param command The OSC command handle to query (may be NULL) @param data The type of data to extract @param out Pointer to store the extracted data (type depends on data parameter) @return true if data extraction was successful, false otherwise

@ingroup osc