resize method
The terminal becomes width x height and keeps what it shows (see
Vt.resizeKeeping); a ResizeEvent follows.
Implementation
void resize(int width, int height, {bool pull = false}) {
vt.resizeKeeping(width, height, pull: pull);
_input.resize(width, height);
}