setMode method

void setMode(
  1. VtMode mode,
  2. bool value
)

Sets mode to value on this terminal.

Implementation

void setMode(VtMode mode, bool value) {
  _ensureOpen();
  _checkResult(
    bindings.ghostty_terminal_mode_set(_handle, mode.packed, value),
    'ghostty_terminal_mode_set',
  );
}