From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#16645: 24.3; in xterm, keypad = is translated to M-o x Date: Tue, 7 Sep 2021 11:53:52 +0200 Message-ID: <20210907095352.GC7611@zira.vinc17.org> References: <87k3da2zxl.fsf@xvii.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27950"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.1.2+54 (f0ff78a5) vl-138565 (2021-08-25) Cc: Stefan Kangas , 16645@debbugs.gnu.org To: Lars Ingebrigtsen , Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 11:57:44 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mNXrL-00073s-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 11:57:43 +0200 Original-Received: from localhost ([::1]:51336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNXrK-0007xz-FZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 05:57:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNXnm-0004Kn-Ch for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 05:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNXnm-00047l-4g for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 05:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNXnm-0003v2-4N for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16645-submit@debbugs.gnu.org id=B16645.163100843715052 (code B ref 16645); Tue, 07 Sep 2021 09:54:02 +0000 Original-Received: (at 16645) by debbugs.gnu.org; 7 Sep 2021 09:53:57 +0000 Original-Received: from localhost ([127.0.0.1]:55439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNXnh-0003ui-1U for submit@debbugs.gnu.org; Tue, 07 Sep 2021 05:53:57 -0400 Original-Received: from joooj.vinc17.net ([155.133.131.76]:42938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNXne-0003uV-OC for 16645@debbugs.gnu.org; Tue, 07 Sep 2021 05:53:56 -0400 Original-Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id DFB6255; Tue, 7 Sep 2021 11:53:52 +0200 (CEST) Original-Received: by zira.vinc17.org (Postfix, from userid 1000) id 9E91EC20D3C; Tue, 7 Sep 2021 11:53:52 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87eea2f2hw.fsf@igel.home> <87mtoqhwqd.fsf@gnus.org> X-Mailer-Info: https://www.vinc17.net/mutt/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213676 Archived-At: On 2021-09-06 11:36:10 +0200, Lars Ingebrigtsen wrote: > Vincent Lefevre writes: > > > (define-key map "\eOx" [kp-8]) > > (define-key map "\eOy" [kp-9]) > > > > Why nothing for [kp-equal]? > > Yes, that seems odd. > > Just to check -- does tack say that 9 on the keypad gives Ox and = on > the keypad gives OX? In xterm, tack says for the keypad keys 8, 9 and =: ^[Ox (ka2) ^[Oy (ka3) ^[OX Unknown So the meaning of ^[OX is unknown for tack and also ncurses. I wonder whether this sequence is generated by xterm or some library. On 2021-09-06 11:59:55 +0200, Andreas Schwab wrote: > On Mär 28 2020, Vincent Lefevre wrote: > > > Why nothing for [kp-equal]? > > Probably because PC keyboards don't come with a '=' key on the keypad. Indeed. The keypad of the PC keyboards seems to come from the VT220 keypad block: ncurses has a file misc/terminfo.src with # With the VT220 keypad block that uses the 1-9 keys as suggested in # terminfo(5), the other keys can be handled with user-defined capabilities: # # _______________________________________ # | NumLock | / | * | - | # | | $Oo | $Oj | $OS | # |_________|__kpDIV__|__kpMUL__|__kpSUB__| # | 7 8 9 | | # | $Ow | $Ox | $Oy | + | # |_ka1__K1_|_________|_ka3__K3_| $Ok | # | 4 | 5 | 6 | kpADD | # | $Ot | $Ou | $Ov | | # |_________|_kb2__K2_|_________|_________| # | 1 | 2 | 3 | | # | $Oq | $Or | $Os | | # |_kc1__K4_|_________|_kc3__K5_| enter | # | 0 | . | $OM | # | $Op | $On | | # |___________________|_________|_kent_@8_| # xterm+keypad|xterm emulating VT100/VT220 numeric keypad, kp5=\EOE, kpADD=\EOk, kpCMA=\EOl, kpDIV=\EOo, kpDOT=\EOn, kpMUL=\EOj, kpSUB=\EOm, kpZRO=\EOp, use=vt220+keypad, The keypad "=" key is an additional key on my Apple keyboard (where the "+" key has a normal size instead of a double size, allowing this additional key). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)