help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows?


From: Barry Margolin
Subject: Re: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows?
Date: Fri, 24 Oct 2003 19:25:02 GMT

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 via email to

[Prev in Thread] Current Thread [Next in Thread]