From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: poppyer Newsgroups: gmane.emacs.help Subject: Re: arrow keys in the console Date: 18 May 2007 13:37:00 +0100 Organization: University Of Oxford, England Message-ID: References: <87646qoaow.fsf@thalassa.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179495127 29418 80.91.229.12 (18 May 2007 13:32:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 May 2007 13:32:07 +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 May 18 15:32:06 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 1Hp2Yu-0005yn-GM for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 15:32:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp2h7-0003K0-Bs for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 09:40:33 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!news.mb-net.net!open-news-network.org!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: clpc78.comlab.ox.ac.uk Original-X-Trace: frank-exchange-of-views.oucs.ox.ac.uk 1179491820 30444 163.1.27.212 (18 May 2007 12:37:00 GMT) Original-X-Complaints-To: newsmaster@ox.ac.uk Original-NNTP-Posting-Date: Fri, 18 May 2007 12:37:00 +0000 (UTC) User-Agent: Emacs Gnus Original-Xref: shelby.stanford.edu gnu.emacs.help:148545 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:44139 Archived-At: Hi, following is what I do to make my [home] [end] key works, I think arrow keys can be done in a similar way. put something like this in your .emacs file: (define-key function-key-map "\eOH" [home]) (define-key function-key-map "\eOF" [end]) (define-key function-key-map "\e[7~" [home]) (define-key function-key-map "\e[8~" [end]) To get the strings right, you can test it in your terminal by ^V and the key you want. Not sure if this is the right way, but at least it works :) Tyler Smith writes: > On 2007-05-18, Pascal Bourguignon wrote: > > > > You can fix it by setting the right value for the TERM environment variable. > > > > What terminal emulator or what kind of console do you use? > > > > For example, I use xterm, so I write: > > TERM=xterm ; export TERM > > in my ~/.bashrc file. > > > I'm just experimenting with the console in linux, i.e., starting up > emacs without starting X. echo $TERM now shows: linux. How do I find > out what it should be? > > For some reason the problem seems to have fixed itself in xterm when > running X. I've been mucking around in my .Xresources trying to fix > the xterm fonts, but I'm not sure what the change was that solved the > problem. It stil exists in the non-X console. > > > > > Otherwise, you can rebind the commands dynamically: > > M-x global-set-key RET RET previous-line RET > > M-x global-set-key RET RET next-line RET > > M-x global-set-key RET RET forward-char RET > > M-x global-set-key RET RET backward-char RET > > etc... > > I'll try that if I can't figure out the underlying problem, thanks. > > Tyler > > --