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: home and end not working Debian Sarge Date: Tue, 12 Jul 2005 17:59:29 +0200 Message-ID: <5b21e924837ae5f8af0c5c8355ce3606@Web.DE> References: <87acksji6r.fsf@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121184471 20987 80.91.229.2 (12 Jul 2005 16:07:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2005 16:07:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 18:07:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DsNHi-000396-Dk for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2005 18:07:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DsNJL-0006C1-QF for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2005 12:08:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DsNFy-0004ib-GN for help-gnu-emacs@gnu.org; Tue, 12 Jul 2005 12:05:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DsNFj-0004bB-2C for help-gnu-emacs@gnu.org; Tue, 12 Jul 2005 12:05:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DsNFi-0004XR-IY for help-gnu-emacs@gnu.org; Tue, 12 Jul 2005 12:04:58 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DsNI7-0002ec-Ak for help-gnu-emacs@gnu.org; Tue, 12 Jul 2005 12:07:27 -0400 Original-Received: from [84.245.189.60] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #297) id 1DsNAQ-0003N3-00; Tue, 12 Jul 2005 17:59:31 +0200 In-Reply-To: <87acksji6r.fsf@magma.ca> Original-To: Angelina Carlton X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:27898 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27898 Am 12.07.2005 um 14:57 schrieb Angelina Carlton: > The Sarge box has no X installed, I ssh into it. On the command line, > outside emacs, C-v(home) C-v(end) both produce ^[[7~^[[8~ on both > computers so it seems my terminals are set up properly. > I think you should make Emacs to load "vt220" or whatever emulation is active when in some terminal (or window-system is nil). Look into /usr/local/share/emacs//lisp/term/vt100.el and then /usr/local/share/emacs//lisp/term/lk201.el how they translate multi-byte sequences like ^[[7~ or \e[7~ to something useful like home or end. If not (I just looked into lk201.el) just add it into your VT or terminal specific file. Copy one of them to a new file name according to the terminal (or emulation) type and then add your unknown keys there! -- Greetings Pete One doesn't expect governments to obey the law because of some higher moral development. One expects them to obey the law because they know that if they don't, those who aren't shot will be hanged. --Michael Shirley