Skip to main content

ghostty_key_encoder_new

Function ghostty_key_encoder_new 

Source
pub unsafe extern "C" fn ghostty_key_encoder_new(
    allocator: *const Allocator,
    encoder: *mut KeyEncoder,
) -> Type
Expand description

Create a new key encoder instance.

Creates a new key encoder with default options. The encoder can be configured using ghostty_key_encoder_setopt() and must be freed using ghostty_key_encoder_free() when no longer needed.