Coder Social home page Coder Social logo

Comments (9)

cronvel avatar cronvel commented on August 19, 2024

Hi, can you provide me some code so I can test that?
What is your gnome version? Your distro?

I'm afraid, it works fine on mine.

You can test using the program: sample/all-event-test.js,
Also try using Ctrl-D during the test to switch from one mouse reporting to another.

from terminal-kit.

ashnur avatar ashnur commented on August 19, 2024

I tried all-event-test, it was working better than what I tried before, because there were no issues until I got to motion. But then this happened:
2015-05-28-165441_1920x1080_scrot

I only have part of gnome installed (so no overall gnome version), but my gnome-terminal is 3.16.2-1
I am using ArchLinux.

However, given the fact that your test is clearly working for me (at least the button and drag modes, which I need), I started thinking what else did I differently. Turns out, using nodemon causes the issue I was talking about. If I don't use nodemon, the issue goes away (apart from the breakages with the motion mode).

Now, I am not sure if this is a problem with terminal-kit or nodemon or neither, just bad luck, but I think we can close this issue for now.
Thanks for the help :).

from terminal-kit.

cronvel avatar cronvel commented on August 19, 2024

There are some chances that nodemon does not pass STDIN and STDOUT data as they are (i.e. performs some formatting, or spawn its own PTY, or whatever), thus interferes with escape sequences written back and forth.

However your screenshot is clearly a bug I should squash ;)

from terminal-kit.

ashnur avatar ashnur commented on August 19, 2024

Tell me if I can help you with that.

from terminal-kit.

cronvel avatar cronvel commented on August 19, 2024

I can't reproduce it but I made some improvement to avoid the whole app to crash if that happens again.
If you can reproduce it again, it should give us more informations.

from terminal-kit.

ashnur avatar ashnur commented on August 19, 2024

I did a pull and tried all-events again. Now, it didn't crash and quit the process, it just shows this:
2015-05-28-192705_1920x1080_scrot

from terminal-kit.

ashnur avatar ashnur commented on August 19, 2024

And in gnome-terminal, it doesn't happen, there it works. So it's probably terminology being broken in some way, if you could tell me what (as in, what standard or something) is not implemented or broken, I could make a request to the authors of terminology.

from terminal-kit.

cronvel avatar cronvel commented on August 19, 2024

Ok, I got it. The minus was ruining the parser. I don't know why they report a negative code here, it is supposed to be an unsigned integer. However, there isn't any real spec for mouse reporting, even invisible island does not give precise pointer.

I fixed that, assuming -1 is used by Terminology instead of the more common code 32 for mouse motion.

Now it should work accordingly.

Thank you for helping me fixing bug!

from terminal-kit.

ashnur avatar ashnur commented on August 19, 2024

It works well, thank you for fixing it.

from terminal-kit.

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.