fix scrolling in xterm