unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barry.margolin@level3.com>
Subject: Re: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows?
Date: Fri, 24 Oct 2003 19:25:02 GMT	[thread overview]
Message-ID: <i0fmb.228$lK3.190@news.level3.com> (raw)
In-Reply-To: f2tbnb.ee.ln@acm.acm

In article <f2tbnb.ee.ln@acm.acm>, Alan Mackenzie <none@example.invalid> wrote:
>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)?

The translation from keycodes to escape sequences is done by the xterm
terminal emulator, not Emacs.  You can customize this by defining
translations in your XTerm app-defaults resource file.  See the xterm
documentation for details on this.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

  reply	other threads:[~2003-10-24 19:25 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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='i0fmb.228$lK3.190@news.level3.com' \
    --to=barry.margolin@level3.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).