Fixed the tests to work around the problem and added /.idea/ to .gitignore for the benefit of contributors who uses intellij
src/xterm.js