bug-ncurses
[Top][All Lists]
Advanced

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

Re: mouse handling doesn't looks correct


From: Pavel Stehule
Subject: Re: mouse handling doesn't looks correct
Date: Wed, 27 Jan 2021 18:44:05 +0100



st 27. 1. 2021 v 15:36 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:


st 27. 1. 2021 v 13:46 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:


st 27. 1. 2021 v 13:37 odesílatel Paul Fertser <fercerpav@gmail.com> napsal:
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 found an reply https://unix.stackexchange.com/questions/76628/gnu-screen-weird-characters-on-click/104027

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



Regards

Pavel





Regards

Pavel


--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com

Attachment: test3.c
Description: Text Data


reply via email to

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