Added xterm support