Resizes the headless terminal between input chunks.
new grid width in cells.
new grid height in rows.