Added automatic xterm export