Updated behaviour to be xterm rather than windows.