emacs-devel
[Top][All Lists]
Advanced

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

Re: xterm [menu] key definition


From: Stefan Monnier
Subject: Re: xterm [menu] key definition
Date: Tue, 24 Aug 2021 22:53:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Please give a look to my last email to Eli. I attached an answer from
> the xterm maintainer respecting to that. That included a xev output and
> his comment about this.
[...]
> xterm does not map either [print] or [menu] in terminfo but maps
> kf16=\E[29~ (that's why urxvt mapped S-<f6> == <f16> == [menu] according
> to their convention)

So, IIUC he's saying that xterm emits `\E[29~` not for `Print` nor for
`Menu` but for `F16`, right?  So maybe we should have

    (define-key map "\e[29~" [f16])

and then remap `f16` to `menu` maybe even via `S-f6`, but we already
have a remapping of `f16` to `S-f4`, so it looks like a big pile of mess.

> The real question is why emacs mapped \E[29~ to [print] in xterm;

This dates back to:

    commit 92abb02b9b65b95807fd8fdccad10feed0dd3a96
    Author: Karl Heuer <kwzh@gnu.org>
    Date:   Fri Jun 9 02:31:33 1995 +0000
    
        Initial revision

so maybe some kind of xterms back then did that?

FWIW, the f16 => S-f4 mapping dates back to:

    commit 35b1b8abe3d3833ecb4b4cee75b7340ffb707d65
    Author: Dan Nicolaescu <dann@ics.uci.edu>
    Date:   Tue Apr 26 05:56:22 2005 +0000
    
        * NEWS: Mention xterm key bindings.
        
        * term/xterm.el (function-key-map): Fix strings for
        {C,S,A,C-S}-f[1-4]. Use substitute-key-definition to bind
        {C,S,A,C-S}-{f1-f12}.

Do you have a "menu" key which emits the `Menu` X11 event and for which
your terminal emits `\E[29~`?  If so, which terminal is that (details
like the version may be relevant and maybe the OS or environment)?


        Stefan




reply via email to

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