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: Re: tty emacs Date: Wed, 23 Apr 2003 08:00:47 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051085801 20028 80.91.224.249 (23 Apr 2003 08:16:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2003 08:16:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 10:16:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198FQl-0005Ct-00 for ; Wed, 23 Apr 2003 10:16:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198FPw-0005eO-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 04:15:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1051085269 8466 193.149.49.134 (23 Apr 2003 08:07:49 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 23 Apr 2003 08:07:49 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:112204 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8703 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8703 Niels Freimann wrote on Wed, 23 Apr 2003 07:38:24 +0200: > Hi, > emacs in tty mode (emacs -nw) obviously doesn't know > C-prior and C-next. I already tried out > (define-key function-key-map "\e[40~" [C-prior]) > (define-key function-key-map "\e[41~" [ C-next]) Presumably you're running in a tty window under X, but under which operating system?. I run emacs directly on a Linux tty. I had to remap my keyboard (with the program loadkeys) fairly radically to make it produce different codes for [right] and [C-right], and so on. Maybe you have to do this (or something similar) for emacs -nw. > however its doesn't help. Any idea? Well, tell us HOW it didn't help. :-) What exactly does happen? Let me guess: C-prior does exactly the same as prior. After typing these two key sequences, do a C-h l ('view-lossage') to see exactly what key codes emacs received. > -Niels -- 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").