Add xterm support