[Top][All Lists]

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

Re: Question about triggering KEY_MOUSE

From: Timothy Allen
Subject: Re: Question about triggering KEY_MOUSE
Date: Thu, 03 Jan 2019 13:38:09 +1100
User-agent: Evolution 3.30.3-1

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.


reply via email to

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