resize method
Resizes the terminal, where the backend supports it (no-op otherwise).
Implementation
@override
void resize({required int cols, required int rows}) {
// No-op: `script` started from pipes has no controlling terminal whose
// SIGWINCH it could follow, and the node cannot reach the child's tty to
// update its window size. Live resize requires the native PTY backend.
}