From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: xterm [menu] key definition Date: Tue, 24 Aug 2021 18:05:46 -0400 Message-ID: References: <20210819024728.kgnf6jmpakqdto4p.ref@Ergus> <20210819024728.kgnf6jmpakqdto4p@Ergus> <87mtp71i4s.fsf@mail.linkov.net> <20210824081906.lg2qt4z2snhaxnjv@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Juri Linkov , Stephen Leake , emacs-devel To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 25 00:06:44 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIeZ9-00060o-7c for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 00:06:43 +0200 Original-Received: from localhost ([::1]:44670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIeZ7-0007aA-3b for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 18:06:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIeYJ-0006oc-42 for emacs-devel@gnu.org; Tue, 24 Aug 2021 18:05:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIeYH-0006zs-G3 for emacs-devel@gnu.org; Tue, 24 Aug 2021 18:05:50 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5C662440FC9; Tue, 24 Aug 2021 18:05:48 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 147E1440F63; Tue, 24 Aug 2021 18:05:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1629842747; bh=6EUn7IacaON/ILZvInYiutYaVCF+lSBZrMpGrHt+eAo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WTz9azgHlma/LEm6phpcXtaFp3aZxR5qLD59QRG4C2BZCMs2dnULwUEpYNF1FqIQq Y3KqW4JBJoxdfhX341J4HL/ICNszBu9M9QJqTADV9GAJpzjZT34HW0RUiX3UX624oF vJL04y/xufRlOz38jddnyUQyxjvExw6V6ouz4xMfsNVtNRS+hS73yIbwDUCDGUJ5Lh CzQtUQn4ao/nUEW+u0I8PhHtuE4AfhBD/HF1ptqVfZV21Emnlph6+9D4LAh1x5QdlQ zLHoJ/PlvzFFeyXKc5YHxR8CmIJS9rUpEqdJSId4epHU6lYMBEKd9l+2t6U6RB2pwu oK2eOqClsbTXg== Original-Received: from alfajor (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C8BCA12043F; Tue, 24 Aug 2021 18:05:46 -0400 (EDT) In-Reply-To: <20210824081906.lg2qt4z2snhaxnjv@Ergus> (Ergus's message of "Tue, 24 Aug 2021 10:19:06 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272929 Archived-At: > I think that definitively "\e[29~" may be bound to [menu] in > xterm. Somehow confirmed by the xterm maintainer in an email: > > "in a quick check the key which I guessed is "menu" (between the Windows > key and the Ctrl key on the right-side of my keyboard) does send ^[[29~ > and xev says that's "Menu"" I'm sorry but I don't understand this. Maybe I'm just missing some of the context in your email exchange, but the way it's written above gives the impression that something external to xterm decides which byte sequence to send when the `menu` or `print` key are used, whereas this decision is made by xterm (partly influenced by things like X resource settings). FWIW, in my environment, I have a key labeled `PrtSc` which `xev` says sends a `Print` event to X11, which `emacs` says sends a `print` event, and which `emacs --nw` running inside `xterm` doesn't receive at all (i.e. my `xterm` doesn't send any bytes in response to it). Stefan