From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: arrow keys in the console Date: Sat, 19 May 2007 16:37:33 +0200 Message-ID: <0B112858-D4C7-41DB-91EF-7A349BAD146A@Web.DE> References: <87646qoaow.fsf@thalassa.lan.informatimago.com> <877ir5fsbb.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179585483 22338 80.91.229.12 (19 May 2007 14:38:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 May 2007 14:38:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tyler Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 19 16:38:02 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 1HpQ4D-0003in-5B for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2007 16:37:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpQ4C-00049b-HW for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2007 10:37:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpQ3x-00049W-7P for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:37:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpQ3u-00047N-7z for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:37:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpQ3u-00047G-2L for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:37:38 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HpQ3t-0002X0-MH for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:37:37 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 5AA037F19C27; Sat, 19 May 2007 16:37:36 +0200 (CEST) Original-Received: from [62.134.229.114] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1HpQ3r-0008Ht-00; Sat, 19 May 2007 16:37:35 +0200 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/G68+8YrSj/3HZX/HProC4ooDkGNcIUo/bM6/S Fu1f2kv6tlTaz2Gw+I8i9XBibJgWHKZhg0ZzITDZJXsSL0kiIo 0hsehjxJyWODzGfFh9Mw== X-detected-kernel: Linux 2.4-2.6 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:44186 Archived-At: Am 19.05.2007 um 05:00 schrieb Tyler Smith: >>> tset - -Q or such can determine the right value. It also would work >>> to set it xterm or xterm-color. This kind of terminal is supported >>> by GNU Emacs. Look into lisp/term directory! >>> >>> -- >> NO! This will not work correctly for a GNU Linux console. The TERM >> setting of 'Linux', is *correct* for the console - do not change >> it. The problem is with keymaps. Load the correct keymap and the >> problem is solved. >> > > Well, you're right. Setting TERM=xterm fixed the arrow keys, but > page-up and page-down still act funny. Open ~/.emacs and then work on this loop: M-x global-set-key RET RET RET C-x Esc Esc C-a C-k C-g ; repeat last command, beginning, kill line, quit C-x b .emacs RET C-y Finally save ~/.emacs. The cursor movement functions are previous-line, next-line, backward- char, and forward-char. Since there is a file /usr/local/share/emacs/22.1.50/lisp/term/ linux.el I wonder whether it's worth to write a bug report about the behaviour of your GNU Emacs in that "linux" terminal. It would be worth to mention the actual key bindings of your system! -- Greetings Pete When confronted with actual numbers, a mathematician is at a loss. (Steffen Hokland)