On Mon, Feb 09, 2026 at 03:24:02PM +0100, Vincent Lefevre wrote: > With ncurses 6.6, mouseinterval(0) causes getmouse errors in Termux, ... > This is the program from > > https://gist.github.com/sylt/93d3f7b77e7f3a881603 > > where "mouseinterval(0);" has been added as instructed at > > https://github.com/termux/termux-packages/issues/28372 > > To reproduce the error, run this program directly in the Termux > terminal (no ssh), and tap (click) several times on the screen. > In my case, a "Got bad mouse event." message appears at the 7th > time (periodically). Note: make sure that they correspond to > clicks, i.e. do not generate mouse movements (the problem still > seems to be reproducible if there are mouse movements between > the clicks, though). > > In the above termux-packages issue, Robert Kirkman bisected it to > > > https://github.com/ThomasDickey/ncurses-snapshots/commit/04b97b07ab93bac2ba9ab92a2c3776ddae75bfaa#r169954711
...which I modified in
20251115
+ amend recent changes to mouse handling to avoid a case which caused
a loop in wgetch until additional input is provided (htop #1769,
cf: 20250913).
> There is a mention of a problem in htop
>
> https://github.com/htop-dev/htop/issues/1769
>
> due to this commit, but I cannot reproduce it, even though I get
> "Got bad mouse event." messages with the above test program.
I'll see if I can reproduce both issues.
--
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc
Description: PGP signature
