Don't reset cursor position on resize.

We shouldn't reset the cursor position on resize. I also can't find the xterm reference anymore.
But this works best. Otherwise we should make that a parameter.

If the terminal window shrinks, my patch also makes sure that the cursor position remains at the same point.