-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mousemask, mouse wheel - different behave than ncurses #255
Comments
A that part was missing in your question: you did define |
pá 16. 12. 2022 v 15:55 odesílatel Simon Sobisch ***@***.***>
napsal:
A that part was missing in your question: you did define PDC_NCMOUSE,
didn't you?
I did it
okbob/pspg@5aa8d2a
… —
Reply to this email directly, view it on GitHub
<#255 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFO46MQTSSF3PAIVM4BW3WNR7HZANCNFSM6AAAAAATA6SMYA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There are some weirdnesses in handling the mouse wheel in ncurses, caused in part by |
I don't understand to implementation part. Just if pdcurses provides an compatibility with PDC_NCMOUSE, then it is surprising so this doesn't work by default. Maybe you can in compatibility mode implicitly set MOUSE_WHEEL_SCROLL when BUTTON4_PRESSED are BUTTON5_PRESSED set. Note - MOUSE_WHEEL_SCROLL is not in ncurses. |
Um. I see your point; if you've #defined That does open up some problems. "Fixing" this would mean we'd have the same problems as ncurses (poor wheel handling, no tilt-wheel handling) and would break the current binary compatibility. The need for compatibility with what PDCursesMod does now argues in favor of three options: (1) the default scenario where |
I love that plan and suggest for 3: |
čt 29. 12. 2022 v 20:30 odesílatel Bill Gray ***@***.***>
napsal:
Um. I see your point; if you've #defined PDC_NCMOUSE, you would
reasonably expect full compatibility with ncurses, including the
shortcomings of ncurses.
That does open up some problems. "Fixing" this would mean we'd have the
same problems as ncurses (poor wheel handling, no tilt-wheel handling) and
would break the current binary compatibility. The need for compatibility
with what PDCursesMod does now argues in favor of three options:
I am not sure if I understand the core issue well, maybe not - and I know
nothing about pdcurses, so my opinion can be wrong.
I think that the behavior that I wound on pdcurses is not correct and the
flag PDC_NCMOUSE is not too important.
If I understand correctly the design of the mousemask function, then I can
get any event that is enabled by some bits. Mouse wheel is abstracted by
BUTTON4, BUTTON5. And If I enable these buttons by mousemask, then any
other flag should not be necessary.
Unfortunately, I know nothing about standard or usual behaviour, but I
think the implementation of mousemask in pdcurses is not fully correct,
because for functionality of BUTTON4 and BUTTON5 I need a separate flag.
… (1) the default scenario where PDC_NCMOUSE isn't #defined;
(2) The current scheme where PDC_NCMOUSE being #defined means you get
something pretty close to matching ncurses behavior, except that you can
read the mouse wheel and mouse movement events;
(3) A new option in which we just try to match ncurses, right down to
places where it's limited by trying to fit all events into 32 bits.
—
Reply to this email directly, view it on GitHub
<#255 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFO4363UU3O5FSEPDFEVTWPXRDRANCNFSM6AAAAAATA6SMYA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I am author of pspg https://github.com/okbob/pspg. It was designed against ncurses, and now I try to port it for pdcurses. I use pdcurses for VT on Linux. Today I found one small issue:
I use mousemask, and I had to little bit different setting for pdcurses (it requires
MOUSE_WHEEL_SCROLL
flag)is it expected behave?
The text was updated successfully, but these errors were encountered: