question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always send mousemove data

See original GitHub issue

Xterm.js only outputs mousemove data during a mouse click. I understand that’s a decent default, but could it be possible to add it as an option to make xterm always output the mousemove data?

Btw: I didn’t directly find any information in the docs about how to enable mouse support, but setting normalMouse and mouseEvents on the terminal object fixed that.

Details

  • Browser and browser version: Firefox 57
  • OS version: Ubuntu 17.04
  • xterm.js version: 2.9.2

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Tyriarcommented, Nov 1, 2017

Looks like other terminals implement this and it’s documented here so this would be a nice to have. Opening it up for PRs, I’m don’t think we would want a (api) setting to drive this but rather when we see CSI ? 1003 h turn it on.

I found this which is relevant to the implementation: https://www.bountysource.com/issues/41567993-mouse-mode-1003-is-unlike-xterm

1reaction
skeritcommented, Nov 2, 2017

@Tyriar I have a node.js terminal application that you could use this with: https://github.com/skerit/janeway

By default there’s only a hover button on the top left, but I could add some indicators on the right.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element: mousemove event - Web APIs | MDN
The mousemove event is fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside...
Read more >
Constantly trigger mousemove event - javascript
Show activity on this post. I have a script that triggers when the cursor is being moved: window. addEventListener('mousemove', function(e){ ...
Read more >
.mousemove() | jQuery API Documentation
The mousemove event is sent to an element when the mouse pointer moves inside the element. Any HTML element can receive this event....
Read more >
jQuery mousemove() Method
The mousemove() method triggers the mousemove event, or attaches a function to run when a mousemove event occurs. Note: Each time a user...
Read more >
Moving the mouse: mouseover/out, mouseenter/leave
As shown, when the pointer moves from #parent element to #child , two handlers trigger on the parent element: mouseout and mouseover :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found