New xterm is working fine for me, scrollbar works, mousescroll works, click drag works, but right click generates an error ...
xterm.js:484 Uncaught DOMException: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.(…)
rightClickHandler @ xterm.js:484
(anonymous function) @ xterm.js:653
Thanks for reporting @oddjobz. Taking a look. Did you have any text selected when right-clicked?
Nope, the xterm is sat in a gridstack which grabs the mouse, so selecting text isn't possible ..
@oddjobz I just pushed 00dcb4f6e3f23139cc638c3061f97a2e999f27ad at #332, which hopefully fixes your issue.
Can you test this out by following these steps?
npm install && BUILD_DIR=dist npm run build)Yes, that fixed it!
Many thanks!!
Great. After it gets a successful code review we will merge it into master and it will make it to 2.1.