rpmohn / a4

dynamic terminal manager and multiplexer
https://a4term.com
MIT License
33 stars 4 forks source link

No support for mouse based cursor control, selection #18

Open kalocsaibotond opened 4 days ago

kalocsaibotond commented 4 days ago

There are TUI applications that support mouse based cursor control, when they are run from a terminal emulator in a graphical window system session. One good example for that is Neovim. However, when I run Neovim in an a4 terminal window, Neovim loses this mouse support. This is not the case for tmux, or zellij.

Is this intentional design choice (dvtm does not supports it either)? It is not a problem for full keyboard based console workflow. However it is quite cumbersome, in a (common) workflow when CLI or TUI applications are used in conjunction with GUI applications (like web browser).

rpmohn commented 3 days ago

Ah, very good call out. A4 grabs the mouse activity for its own bindings. I will play around to see if I can have it pass through when a mouse action is not bound to an a4 action. That would be a good thing. Do you know if Neovim mouse clicks work when tmux mouse support is enabled?

kalocsaibotond commented 10 hours ago

Ah, very good call out. A4 grabs the mouse activity for its own bindings. I will play around to see if I can have it pass through when a mouse action is not bound to an a4 action. That would be a good thing. Do you know if Neovim mouse clicks work when tmux mouse support is enabled?

As of the latest (3.4) tmux version, I confirm that mouse clicks work in a tmux launched Neovim session and it is enabled by default (no configuration required).