Comments (8)
it is already possible. gpm is one of the dependencies. most distros disabled the sevice.
from twin.
it is already possible. gpm is one of the dependencies. most distros disabled the sevice.
I already have GPM enabled on my system. The issue is that my mouse inputs aren't detected by the applications in the terminals. If i open Midnight commander in my TTY, I can click, say for example a folder, and it'll select it, but if I open Twin, open an instance of Twin Term, and open Midnight commander in there, that functionality is lost.
from twin.
This was an issue with YAST on my Opensuse machines where if i opened YAST via a TTY/SSH session running twin i would lose GPM. Right now i seem to be having more issues building the latest version so i will have to get back to you after i get a build going and do some testing.
from twin.
GPM is needed for mouse support when running mouse-aware programs (including twin) directly on the Linux console - it's not needed in other cases.
Twin terminals emulate a Linux console (plus some extra features), thus set $TERM=linux
.
An actual Linux console does not "natively" support mouse: when running inside it, programs need to manually connect to a dedicated GPM daemon to receive mouse events.
Instead Twin terminals natively support mouse, i.e. they also provide xterm-style mouse events - if a program enables them by sending the appropriate escape sequences.
The problem is lots of mouse-aware programs, including Midnight Commander, check the environment variable $TERM
to decide whether the terminal supports mouse or not: for $TERM=linux
they do not even try to enable xterm-style mouse events.
You can try to cheat a little and manually run TERM=xterm; export TERM
before running Midnight Commander - let me know if it helps.
from twin.
You can try to cheat a little and manually run
TERM=xterm; export TERM
before running Midnight Commander - let me know if it helps.
While it did "work", it ended up causing garbled output. I just remembered that the mouse drivers on the latest version aren't working, this text is from me executing htop earlier on the ubuntu release, which screwed up the top panel
This hack doesn't do anything.
from twin.
Can confirm. Only applications which use xterm way of handling mouse inputs seem to work. vim and midnight commander (the only ones I know which use GPM directly) are broken and ignore mouse clicks in twin.
from twin.
Yes, because vim and midnight commander see the environment variable TERM=linux
(twin terminals emulate a Linux console) and they immediately assume to be running directly inside an actual Linux console, thus they try to use GPM for mouse support.
As I wrote above, a possible workaround (which may not work, as xterm
and linux
terminals are not fully compatible), is to slightly cheat and set TERM=xterm
before launching vim, midnight commander or other GPM-aware programs.
The better solution would be to search in vim and midnight commander's documentation for how to enable xterm-compatibile mouse support also when TERM
is different from xterm
from twin.
Setting TERM
does the trick, sorry for confusion
from twin.
Related Issues (20)
- Long running headless TWIN hangs [on 32-bit system] HOT 10
- Compile error using (intentionally old) g++ 4.9.2 HOT 16
- Twin clients die when connection is lost HOT 13
- hw_X11 and hw_xft don't work as expected in some cases HOT 11
- Crash attaching both --hw=X11 and --hw=xft at the same time HOT 2
- Support for Wayland? HOT 1
- I can't compile on Ubuntu 20.04 HOT 6
- Problems compiling: hw: No such file or directory HOT 2
- Integer overflow when calculating AllocMem() size HOT 1
- I made a deb package and put it into an apt repository HOT 5
- xft install command HOT 1
- Problems Compiling Part 2 HOT 5
- Mouse drivers not working on fresh compilation of Twin HOT 1
- compiled in w11 wsl 1 -> Bug ? HOT 3
- How do I change the bloody font? (Times New Roman is just the precursor to Comic Sans, and I hate it) HOT 9
- Alacritty support? HOT 3
- Bright versions of 4-bit color palette HOT 10
- Automating commands and fullscreen?
- Ctrl actions writes random characters when using the micro text editor inside a twin terminal.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twin.