From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Slightly OT: Where are keycodes defined for emacs -nw in X-Windows? Date: Fri, 24 Oct 2003 19:03:42 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067023199 10661 80.91.224.253 (24 Oct 2003 19:19:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2003 19:19:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 21:19:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AD7TY-0003qw-00 for ; Fri, 24 Oct 2003 21:19:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AD7RM-00013D-2S for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2003 15:17:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1067022064 83480 193.149.49.134 (24 Oct 2003 19:01:04 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 24 Oct 2003 19:01:04 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:117595 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13527 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13527 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").