all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie<none@example.invalid>
Subject: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows?
Date: Fri, 24 Oct 2003 19:03:42 +0000	[thread overview]
Message-ID: <f2tbnb.ee.ln@acm.acm> (raw)

Emacs 21.1.

In X-windows (running on GNU/Linux) I start emacs with "emacs -nw".  If I
type up and [C-up], followed by C-h l `view-lossage', I see this:

up     produces    ESC O A
[C-up] produces    ESC [ 2 4 ~

However, my Emacs isn't set up to handle the [C-up] event-sequence.  It
would seem I need to enhance my function-key-map somehow.

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- ....).

Two questions:

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)?

Is there a better file already in existence than the above xterm.el, one
that copes with _all_ keys with _all_ combinations of modifiers? 

Thanks in advance!

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

             reply	other threads:[~2003-10-24 19:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24 19:03 Alan Mackenzie [this message]
2003-10-24 19:25 ` Slightly OT: Where are keycodes defined for emacs -nw in X-Windows? Barry Margolin
2003-10-24 20:15 ` Stefan Monnier
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=f2tbnb.ee.ln@acm.acm \
    --to=none@example.invalid \
    /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.