Added xterm terminal support