|
From: | Bryan Christ |
Subject: | Re: Question about triggering KEY_MOUSE |
Date: | Thu, 3 Jan 2019 12:02:58 -0600 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |