Fixed in https://github.com/peters/pty.js/commit/4a435e10b0622b9337d262e8984523059195b1f1