Adjusted xterm mode to be more compatible.