[Top][All Lists]

[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: Tue, 1 Jan 2019 22:30:30 -0600

So if xfce is using VTE under the hood, how does ncurses know to use the terminfo for VTE instead of xterm which is what TERM is set to?  Setting TERM is what I use to nudge ncurses into emitting RXVT sequences.

On Tue, Jan 1, 2019 at 6:42 PM Thomas Dickey <address@hidden> wrote:
On Tue, Jan 01, 2019 at 05:20:21PM -0600, Bryan Christ wrote:
> Timothy,
> Even with passing the -x param to infocmp, I still don't see XM defined for
> the four I queried:
> xterm, konsole, xfce, rxvt

Four examples for "XM",

        + xterm:
          It's in the original terminfo source for "xterm" in ncurses.
          However, packagers (on multiple systems) have interfered with that,
          splicing together the example terminfo from the _xterm_ source
          and overwriting the entry which I constructed for _ncurses_.
          The _xterm_ source doesn't have the extension.

        + konsole:
          The ncurses terminfo bases its mouse behavior on xterm-r6.
          Looks like I overlooked konsole when adding SGR 1006 to the
          mouse behavior, though it seems to be supported in the source.

        + xfce:
          ncurses has this aliased to vte-2008; but since XFCE terminal
          is just another wrapper around VTE, if you happen to be using
          some newer VTE underneath, that would be addressed by using
          one of the dated "vte" entries.

        + rxvt:
          That only implements the original xterm mouse protocol.
          urxvt is different - another story...

> On Tue, Jan 1, 2019 at 5:09 PM Timothy Allen <address@hidden> wrote:
> > On Tue, 2019-01-01 at 16:57 -0600, Bryan Christ wrote:
> > > That makes sense, but I'm looking in the terminfo for xterm and rxvt
> > > (using infocmp) and not seeing XM in either one.
> >
> > "XM" is one of ncurses' "user-defined" capabilities, as described in
> > user_caps(5). Make sure you pass the "-x" flag to infocmp to see them.
> >
> >
> --
> Bryan
> <><

> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-ncurses

Thomas E. Dickey <address@hidden>


reply via email to

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