chjj / blessed

A high-level terminal interface library for node.js.
Other
11.25k stars 531 forks source link

"All Motion" mouse events no longer work in tmux 2.0 #145

Open chjj opened 9 years ago

chjj commented 9 years ago

See test/program-mouse.js to observe this. Only "Cell Motion" seems to work (on mousedown). Not sure why this was changed. This prevents hover effects from working in tmux. May have to report this as a @tmux issue.

chjj commented 9 years ago

It looks like "all motion" might be gone for good, unfortunately: https://github.com/tmux/tmux/issues/55

I'm keeping this issue open in hopes that one day this change is reverted.

chjj commented 9 years ago

It looks like the tmux; passthrough DCS still works for all-motion in every terminal I've tested. Even with multiple tmux panes. I guess that makes sense since tmux is stil handling cell motion, it fortunately takes the underlying terminal's all-motion for cell motion.

chjj commented 9 years ago

Closing this now that we have a workaround, but this is still a shame tmux no longer supports this.

chjj commented 9 years ago

One downside to this workaround is: it will not work over SSH since there's no way to check if a user is inside tmux on the client machine from the remote machine (unless SendEnvs are used in ~/.ssh/config). Even if it could, nested tmux instances wouldn't work either (one client and host). I encourage everyone to request all-motion be reimplemented in tmux.

Reopening.

chjj commented 9 years ago

Also, here is the complete workaround in question: https://github.com/chjj/blessed/compare/v0.1.12...v0.1.14