resize method

  1. @override
void resize({
  1. required int cols,
  2. required int rows,
})
override

Resizes the terminal, where the backend supports it (no-op otherwise).

Implementation

@override
void resize({required int cols, required int rows}) {
  if (_disposed) return;
  try {
    _winpty.setSize(_wp, cols, rows, nullptr);
  } catch (_) {
    // Best-effort: the agent may already be gone.
  }
}