Giter Club home page Giter Club logo

Comments (3)

cosmos72 avatar cosmos72 commented on August 29, 2024 1

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.

cosmos72 avatar cosmos72 commented on August 29, 2024

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.

agoodfellow123 avatar agoodfellow123 commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.