all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Lars Ingebrigtsen <larsi@gnus.org>,
	Andreas Schwab <schwab@linux-m68k.org>
Cc: Stefan Kangas <stefan@marxist.se>, 16645@debbugs.gnu.org
Subject: bug#16645: 24.3; in xterm, keypad = is translated to M-o x
Date: Tue, 7 Sep 2021 11:53:52 +0200	[thread overview]
Message-ID: <20210907095352.GC7611@zira.vinc17.org> (raw)
In-Reply-To: <87eea2f2hw.fsf@igel.home> <87mtoqhwqd.fsf@gnus.org>

On 2021-09-06 11:36:10 +0200, Lars Ingebrigtsen wrote:
> Vincent Lefevre <vincent@vinc17.net> 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 <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





  reply	other threads:[~2021-09-07  9:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 23:58 bug#16645: 24.3; in xterm, keypad = is translated to M-o x Vincent Lefevre
2014-02-05  0:15 ` Vincent Lefevre
2014-02-05  1:17   ` Vincent Lefevre
2020-03-28  0:55     ` Stefan Kangas
2020-03-28  1:23       ` Vincent Lefevre
2021-09-06  9:36         ` Lars Ingebrigtsen
2021-09-07  9:53           ` Vincent Lefevre [this message]
2021-09-08  7:25             ` Lars Ingebrigtsen
2021-09-06  9:59         ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210907095352.GC7611@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=16645@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.