On Sun Sep 7, 2025 at 21:11:03 GMT +03, Robin Haberkorn wrote: > It seems that we need to check for "wheel" in `case 2` as well and return > REPORT_MOUSE_POSITION. Or can we report buttons > 5 via bstate? At least we > don't have BUTTON[67]_PRESSED macros etc.
It seems we cannot report these buttons without breaking the ABI as we have reserved only 5 buttons. Ignoring the horizontal scroll "buttons" (6 and 7) is a rather simple change, though. Unfortunately I have not found any workaround for existing ncurses releases. It probably wouldn't happen if I could force ncurses to initialize another mouse mode. But it doesn't appear to be possible without changing $TERM or deriving an existing terminfo entry. Fixing the wrong order of middle mouse button clicks in Xterm and other emulators will be trickier though. I believe that the mouse event "queue" is read in the wrong order. And there is probably some other bug causing the infrequent change of order of events. -- @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*+*!!
signature.asc
Description: PGP signature
