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: Thomas Dickey
Subject: Re: mouse handling doesn't looks correct
Date: Wed, 27 Jan 2021 21:02:05 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Jan 27, 2021 at 06:44:05PM +0100, Pavel Stehule wrote:
> 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?

ncurses doesn't know that the program changed that setting using printf

It's using this information in TERM=xterm:

        XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,

effectively saying that it'll turn off the 1000.  But if xterm's in 1002,
then 1000 is off, so that has no effect.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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