bug-ncurses
[Top][All Lists]
Advanced

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

Re: Question about triggering KEY_MOUSE


From: Bryan Christ
Subject: Re: Question about triggering KEY_MOUSE
Date: Thu, 3 Jan 2019 12:02:58 -0600

Timothy,

I'm surprised, but my testing confirms your read of the code.  Basically, if I set my font size small enough and make my window big enough to get more than 233 columns on the screen, the application I've been testing with does not respond to clicks beyond column 233.

That clears it it all up... but in a sad kind of way.  X10 it is.

On Wed, Jan 2, 2019 at 8:38 PM Timothy Allen <address@hidden> wrote:
On Wed, 2019-01-02 at 09:54 -0600, Bryan Christ wrote:
> If xfce is really vte masquerading as xterm (via TERM) and the
> vanilla terminfo entry for xterm doesn't have XM
> defined, how does ncurses know that it can do some mode better than
> X10?

Looking at init_xterm_mouse() in the ncurses source code[1], it works
like this:

- if the terminfo entry has an XM string, ncurses parses it to extract
the mouse mode
- otherwise, if the terminfo entry has an XM integer, ncurses assumes
it's the mouse mode (unknown values are mapped to 1000)
- otherwise, ncurses just assumes mode 1000.

[1]:
https://github.com/ThomasDickey/ncurses-snapshots/blob/master/ncurses/base/lib_mouse.c#L376



--
Bryan
<><

reply via email to

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