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 for the pipe-based backend: there is no controlling terminal whose
// window size could be updated. Live resize requires the PTY backend.
}