improvements to xterm