From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: emacs and xterm again Date: 01 Jun 2007 05:38:44 GMT Organization: Sedgeboy Inc. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1180676436 20478 80.91.229.12 (1 Jun 2007 05:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Jun 2007 05:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 01 07:40:34 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HtzsI-0003am-F5 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jun 2007 07:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtzsH-0002gA-OS for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jun 2007 01:40:33 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 42 Original-X-Complaints-To: abuse@aliant.net Original-Xref: shelby.stanford.edu gnu.emacs.help:148997 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44586 Archived-At: Sorry for the double-post. I accidentally sent this to gnu.emacs, which seems to not be active. Hi again, I'm still working on some problems getting Emacs to recognise arrow keys and page{up|down} etc. I've sorted out my previous issues in the console by getting the proper keymap installed. What I can't figure out is how to get emacs running in xterm to recognise special keys. The arrow keys work fine when pressed singly. When I try to modify them, like C-left or M-left, which produces backwards-word when I'm running emacs under X, I get instead something that emacs interprets as ^[[1;5D or ^[[1;3D. Function keys seem to work, but pgup and pgdown give me similar outcomes to the modified arrow keys. Things I've checked, with help from people on this list: $TERM = xterm M-x global-set-key RET RET ... fails because emacs interprets the page-up as a M-[ 5~ Executing: (define-key function-key-map "\e[5~" [prior]) (define-key function-key-map "\e[6~" [next]) doesn't change the behaviour. I've checked that my xterm.el file looks right, and recompiled it. I've run emacs -nw -q Nothing seems to work. I'm running Debian Lenny with Fluxbox. Any further suggestions would be welcome! Thanks, Tyler