all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Slightly OT:  Where are keycodes defined for emacs -nw in X-Windows?
Date: Fri, 24 Oct 2003 20:15:24 GMT	[thread overview]
Message-ID: <jwvbrs6pfjs.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca> (raw)
In-Reply-To: f2tbnb.ee.ln@acm.acm

> Searching the info pages brought me to the page "Terminal Specific" in
> the Elisp manual.  Checking the environment variable TERM brought me to
> the initalisation file ...../lisp/term/xterm.el.  In this file, only a
> small number (21) of function keys are defined, none of them with
> modifiers (i.e. C- M- S- ....).

The sequences are poorly standardized, especially the ones with modifiers.
That's why they're absent mostly.  But since it generally doesn't hurt to
add bindings to that table (as long as there's no collision between two
different bindings for the same sequence), feel free to send patches
to complete the table.

In the Emacs-CVS code, I've added a binding for C-up but it uses a different
sequence than yours (more specifically ESC [ 0 5 A).  This is the binding
I get on my GNU/Linux system.  Obviously, different GNU/Linux systems
will not necessarily all use the same sequence.

> Where on X is the file which defines the relevant keytable, and what's
> the name of the function in X which loads such a table (analogues of
> /etc/default.keytab and loadkeys for the Linux console)?

X is not directly at fault.  The translation from C-up to a sequence of
ASCII codes is done by your terminal emulator, so you need to look at
the doc of your xterm, kterm, what-have-you-term, ...

Then Emacs turns those sequences back into meaningful events based
on the lisp/term/$TERM.el file but also based on the terminfo of
your terminal.


        Stefan

  parent reply	other threads:[~2003-10-24 20:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24 19:03 Slightly OT: Where are keycodes defined for emacs -nw in X-Windows? Alan Mackenzie
2003-10-24 19:25 ` Barry Margolin
2003-10-24 20:15 ` Stefan Monnier [this message]
2003-10-24 20:19   ` Stefan Monnier
2003-10-26 10:19   ` Alan Mackenzie
2003-10-26 16:15     ` Thomas Dickey
2003-10-28 10:16       ` Alan Mackenzie
2003-10-28 13:17         ` Thomas Dickey
2003-10-28 15:21         ` Barry Margolin
2003-10-27  9:50     ` Gian Uberto Lauri
     [not found]     ` <mailman.2518.1067256787.21628.help-gnu-emacs@gnu.org>
2003-10-27 15:56       ` Stefan Monnier
2003-12-03 22:20     ` Kai Grossjohann

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=jwvbrs6pfjs.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /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.