Multiple issues with mouseinterval(0)
Giorgos Xou <[email protected]> Thu, 2 Apr 2026 04:22:21 +0300
| Newsgroups | gmane.comp.lib.ncurses.bugs |
|---|---|
| Message-ID | <CAG9dOf-ZDEKBDujAMU=6xWdiwbkH2dcNO_4qsxaWbiOU74C_dQ@mail.gmail.com> |
Since ncurses-6.6-20260301 many apps that internally use
`mouseinterval(0)`, appear to crash completely after just a few clicks
<https://github.com/termux/termux-packages/issues/29173#issuecomment-4166513572>
(see
also this
<https://github.com/termux/termux-packages/pull/28885#issuecomment-4172842288>
).
Separately, testing
<https://github.com/termux/termux-packages/pull/28885#issuecomment-4166455716>
`mouseinterval(0)` *(script included below)* showcases that just two
consecutive extremely-rapid clicks are enough to disrupt overall mouse
button event handling from that point and on *(issue persists afterwards no
matter what)*.
```
from pynput.mouse import Button, Controller
# pip install pynput
mouse = Controller()
for i in range(0,2):
mouse.press(Button.left)
mouse.release(Button.left)
```
*(Plus, rapidly spamming multiple mouse buttons together, also appears to
trigger similar issues.)*
In practice, the 2nd issue rarely appears, since mouse clicks almost never
occur with literally zero delay. *However*, one environment where it does
actually appear is under Termux <https://github.com/termux/termux-app>,
where touch-taps\clicks are implemented with no delay between press and
release (see the reason why, here
<https://github.com/termux/termux-packages/pull/28885#issuecomment-4043796360>).
There, the issue unfolds in a more wild way due to the fact that touch\taps
are not the same as mouse clicks
<https://github.com/termux/termux-packages/pull/28885#issuecomment-4166481220>.
See also issue: https://github.com/termux/termux-packages/issues/28372
PS. I hope I haven't forgotten anything... let me know if you need any
further clarification or info. Hope this finds you well. Stay positive &
keep up the great work. I love Ncurses.