Comments (3)
Good :) then a slightly more long-term solution is to launch twin with
twstart --hw=tty,mouse=xterm
or
twin --hw=tty,mouse=xterm
which avoids lying about $TERM
environment variable.
Note: you can get the list of supported options with
twin --hw=tty,help
from twin.
Hello @agoodfellow123,
as far as I remember, there's no standard mechanism to programmatically detect whether a terminal supports mouse or not.
Currently, twin checks if the environment variable $TERM
is either linux
, xterm
or some known xterm-like variant (rxvt
or Eterm
).
You can easily add alacritty
to the checks in twin/server/hw/hw_tty_common/mouse_xterm.h
line 54 and recompile,
although a more general solution would surely be better...
Another "quick and dirty" approach that works with many terminal emulators (provided they are similar enough to xterm) is to just set TERM=xterm
before starting twin.
Let me know if either solution works :)
from twin.
I am happy to report that "quick and dirty" method works perfectly! Haven't tried the compiling method but since lying about the terminal works I assume it would work as well.
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
- GPM support in Twin Term HOT 8
- 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
- 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.