[screen] Make xterm scrolling work properly.