macosOptionAsAlt property

set macosOptionAsAlt (GhosttyOptionAsAlt value)

macOS option-as-alt behavior.

Implementation

set macosOptionAsAlt(bindings.GhosttyOptionAsAlt value) {
  _ensureOpen();
  final ptr = calloc<ffi.UnsignedInt>()..value = value.value;
  try {
    bindings.ghostty_key_encoder_setopt(
      _handle,
      bindings
          .GhosttyKeyEncoderOption
          .GHOSTTY_KEY_ENCODER_OPT_MACOS_OPTION_AS_ALT,
      ptr.cast(),
    );
  } finally {
    calloc.free(ptr);
  }
}