You are not logged in.
Pages: 1
Topic closed
I found a way to make tmux working with mouse in text mode. IMO it's better than pure gpm/consolation setup, so I wanted to share my way. It's also interesting to know if there are more straightforward ways to get the same result.
ANY application supporting mouse in a xterm can use mouse in Linux console as well. Not only those specifically compiled with gpm support, such as vim. Tmux notably doesn't work with gpm but now it does let you switch panes using mouse in Linux text console.
- no need for gpm-specfic support any more - so apps such as tmux work with mouse in Linux console
- gpm-style mouse copy-paste doesn't work
- standard base setup
- consolation (from AUR)
- lcxterm https://gitlab.com/klamonte/lcxterm/-/tags/v0.9.1 (I'm not an author; I have a PKGBUILD if someone wants to try but it's trivial configure/make/make install)
- lcxterm plugs between agetty and bash and injects xterm mouse escape sequences
- systemctl start consolation
- in a console:
- log in
- run lxcterm
- run tmux with tmux set mouse on
- open more than one tmux pane
- switch between panes using a text mode blocky mouse cursor
vim and nvim work as well, with basic :set mouse=a setup.
What do you think? Is there a way to achieve this with less exotic components?
Note
- it's a simplified non-intrusive setup. The proper way is probably to make agetty running it.
- I tested it in Hyper-V, YMMV
Last edited by nponeccop (2021-03-28 14:26:08)
Offline
I wonder why lcxterm isn't available in either the AUR or the binary repositories. Sometimes people want to run tmux in the tty environment, so this tool is useful. By the way, on FreeBSD, the mouse will simply work in tmux running in the tty environment, and no additional tools will need to be installed.
Offline
I wonder why lcxterm isn't available in ... the AUR
Because no one has submitted it. Feel free to do so if you think it's worthwhile.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oleg_NYC, this thread is two years old. Please do not necrobump.
Closing.
Offline
Pages: 1
Topic closed