Add xterm support
Merge pull request #12 from agarie/xterm-support

Add xterm support