resize method
Resizes the terminal to the given cell dimensions.
Implementation
void resize({required int cols, required int rows}) {
_ensureOpen();
final checkedCols = _checkPositiveUint16(cols, 'cols');
final checkedRows = _checkPositiveUint16(rows, 'rows');
final result = bindings.ghostty_terminal_resize(
_handle,
checkedCols,
checkedRows,
);
_checkResult(result, 'ghostty_terminal_resize');
_cols = checkedCols;
_rows = checkedRows;
}