getMode method

bool getMode(
  1. VtMode mode
)

Returns whether mode is currently set on this terminal.

Implementation

bool getMode(VtMode mode) {
  _ensureOpen();
  final out = calloc<ffi.Bool>();
  try {
    _checkResult(
      bindings.ghostty_terminal_mode_get(_handle, mode.packed, out),
      'ghostty_terminal_mode_get',
    );
    return out.value;
  } finally {
    calloc.free(out);
  }
}