bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse button handling


From: Thomas Dickey
Subject: Re: Mouse button handling
Date: Mon, 29 Aug 2011 17:29:37 -0400 (EDT)

On Mon, 29 Aug 2011, Damien Guibouret wrote:

Hello,

Loading the ncurses 5.9 version last week to try it in replacement to the old
5.4 I am still using, I've found some differences into mouse management that
breaks the behaviour in some cases. I take a look at the sources and did some
changes that I think necessary. All the changes I did are into
ncurses/base/lib_mouse.c file (I used 5.9 released version as base) and are
into the attached file with the following explanations.

thanks (will review/etc)

I still see some open points on this change:
- for the USE_EMX_MOUSE case, I do not know the EMX protocol and cannot test it,
but is the fact that it sets button as pressed and released in same event the
correct interpretation. If so, shouldn't the click event be set also?

separate press/release events that get combined into clicks (based on time) seems to be the usual rule.

I have also a question regarding the wide character handling: the get_wch
function returns a OK code for standard key and a KEY_CODE_YES for KEY_ codes.
But the inverse function (unget_wch) does not allow performing such a
distinction. Does this mean that ungetting KEY_ codes is not allowed (or could
work but will depend on if it enters in conflict with a valid standard key) ?

yes - without adding an extension, the interface documented in X/Open
doesn't address KEY_ codes...

I hope that at least some of these changes will be usefull,

;-)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]