Hello,
On Wed, Jan 27, 2021 at 01:19:05PM +0100, Pavel Stehule wrote:
> I am testing this example, and it doesn't work like I expect. ncurses does
> only two events - click press and click release.
Are you testing with TERM=xterm-1003 ? Please also check
https://stackoverflow.com/a/29023361 (how to combine mouse motion
events with 256 colours).
ook. It is working, although a little bit more than I expected (the bits for mouse buttons are zero) - and it is working for GNOME terminal too. But I am afraid so nobody will set TERM to this value. It doesn't work with the default xterm setting.
I don't understand why this feature is not default? The necessity of modification of terminfo looks really strange.
Now, I understand a little bit of this behaviour.
I still have one question. Thomas Dickey wrote so endwin reset mouse mode. It doesn't work in my test.
I have to explicitly use the sequence "\033[?1002l;". Without it, the mouse is still in mode 1002?
Regards
Pavel