On Sun, Sep 14, 2025 at 12:54:26PM +0000, Robin Haberkorn wrote: > Hello Thomas! > > On Sun Sep 14, 2025 at 01:42:52 GMT +03, Thomas Dickey wrote: > > However: in my earlier response, I was checking with Debian/12. > > I have a functional FreeBSD 14.2 (whenever 15 is released, I'll check > > on that...). > > > I am also daily driving FreeBSD and will probably switch to 15 once > it's released. > > > Interestingly, the mouse results are different for the FreeBSD machine, > > which I can see by extra position events. This happens with/without > > your patch. Also, with/without the patch, I see dropped press or release > > events. That's using an ssh connection to the Debian machine where I > > have the ncurses test-program at hand. > > > I was testing both with openSUSE Thumbleweed (Wayland) and FreeBSD 14.3 > (Xorg) - > both behaved exactly the same. > Did you try with the program I sent earlier or do you have your own > test program?
I tried with your program, saw no difference from ncurses test-program: https://github.com/ThomasDickey/ncurses-snapshots/blob/master/test/ncurses.c > > I don't see any instance where xterm puts a press and release event > > without a delay, but proving that would require maintaining a timestamp > > to show the intervals (seems like work, and would only be useful for > > debugging the library). > > To test this particular behavior it was sufficient for me to literally > run `tput XM 1; cat`. And you will already see how a middle press doesn't > produce any escape sequence, while both escape sequences are emitted > on the release event. > Can you confirm this? no - if I hold the button down, I see only a press, the release sequence happens when I let the button up. > It was also because of this that I realized that getmouse() may have > to be called multiple times for every KEY_MOUSE. It might be related to the mouse. I've been using a logitech for quite a while. Perhaps this (looks like that): https://www.amazon.com/Logitech-Hyper-Fast-Scrolling-Customizable-Precision/dp/B0D9FCG4GN/ref=sr_1_4?dib=eyJ2IjoiMSJ9.QPF2ZxnGhRL8L0-n4vqDHTTfx6P8q4GHwvUrzzG9hE-9BeBu4jorOXikVoIyI62wj8CB07DRTgebMAoZzhaRDvREopaDPkYc6rnUjU4RD8vgq4lRavc-ZiAy4l0MMlIwD_Ep058EeMOD7oDfaG8YpaW8jXtnyNtA5cKLc801nfIoKk7L7fWxaJE3Etpj4eQlcs-vuLfp203pnYH61qnpS12u0k8rUZ4D3CA4Ig7OVGY.c3WzNo1lZ1sZN9BCz7XuMj4geDA118LkyjtU6rrzckM&dib_tag=se&hvadid=694257962085&hvdev=c&hvexpln=67&hvlocphy=9007596&hvnetw=g&hvocijid=15110716425396060983--&hvqmt=e&hvrand=15110716425396060983&hvtargid=kwd-301464281002&hydadcr=18031_13447380&keywords=logitech%2Bwired%2Bmouse&mcid=ff23f696ddb439ca939066364c21d95f&qid=1757892096&sr=8-4&th=1 > > Best regards, > Robin > > -- > @ii._._.*.._+__.+_+.+...+.+.++..+*+.+._.+...*_*.*.__+__._._.++..+_*.++__+__ > .+_..*...+.+_+__.+._.+...*_+_+__._ ...*_ +.+._.+.._+*+_+__._._ .+_..+.+***_ > . *_+_+__.+.*.++..+_+.*.__+_ _.+...*_*_+__.++*.+...++..+* +.+.._+__._+_.+.. > .++..+*_.*...+*+.+.*_ +*+i2^rj.u#__%uu#_.%uu#_+%uu#_*!+!0a"t1010^t^c^c'0a^# > 1010"=d'0a-100000"=d'0auuqq*100+q[_^euu]uq-rq:^/100@oo,+,+,+oqq^t0uq@o*+*!! -- Thomas E. Dickey <[email protected]> https://invisible-island.net
signature.asc
Description: PGP signature
