Skip to main content

ghostty_grid_ref_hyperlink_uri

Function ghostty_grid_ref_hyperlink_uri 

Source
pub unsafe extern "C" fn ghostty_grid_ref_hyperlink_uri(
    ref_: *const GridRef,
    buf: *mut u8,
    buf_len: usize,
    out_len: *mut usize,
) -> Type
Expand description

Get the hyperlink URI for the cell at the grid reference’s position.

Writes the URI bytes into the provided buffer. If the cell has no hyperlink, out_len is set to 0 and GHOSTTY_SUCCESS is returned.

If the buffer is too small (or NULL), the function returns GHOSTTY_OUT_OF_SPACE and writes the required number of bytes to out_len. The caller can then retry with a sufficiently sized buffer.

        GHOSTTY_OUT_OF_SPACE, the required buffer size in bytes.
    node is NULL, GHOSTTY_OUT_OF_SPACE if the buffer is too small