From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olive Newsgroups: gmane.emacs.help Subject: Re: Certain keys don't work in emacs in a terminal Date: Fri, 10 Nov 2006 23:52:51 +0100 Organization: Tele2 Message-ID: <45550244$0$7617$bf4948fe@news.tele2.nl> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163202052 28384 80.91.229.2 (10 Nov 2006 23:40:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2006 23:40:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 11 00:40:51 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gifys-0006Ib-Um for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Nov 2006 00:40:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gifys-0005ai-BA for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Nov 2006 18:40:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!news.wiretrip.org!feeder4.cambrium.nl!feeder3.cambrium.nl!feed.tweaknews.nl!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060914 SeaMonkey/1.0.5 Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 48 Original-X-Trace: DXC=FD]bAZUQ7e0i76X_kIDL\<6`Y6aWje^Y:aiYbcdAX@<=T40MP<^42]62o_mG6KcJ`15An<3YePI08 Original-Xref: shelby.stanford.edu gnu.emacs.help:143023 Original-To: help-gnu-emacs@gnu.org 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:38641 Archived-At: Jorge Peixoto de Morais Neto wrote: > When I use emacs under xterm, pressing generates a message that > " is undefined"; pressing "C-1" inserts the number 1 as if I had > pressed just "1". > Under a virtual console, the behavior is also wrong, but different. > > How can I make emacs work under xterm or under a virtual console as if > it was under X? > > Thank you. > > PS: I am sorry for sending this message again... but there is more than > a month and no answer. i won't send any more times. > -- > Software is like sex: it is better when it is free. You have to configure your term. For xterm, it work properly if you use the following Xresources XTerm.ttyModes: erase ^? XTerm.vt100.backarrowKey: false XTerm.vt100.eightBitInput: false For the menu key under Xterm, there is a bug in xterm.el (this file load specific keys for xterm); change the last line from (define-key function-key-map "\e[29~" [print]) to (define-key function-key-map "\e[29~" [home]) This key does not work under the console and in my case the console does not recognise it; but you can use Alt-x as normal. Some distributions put resource remappings some functions keys in Xterm; ensure to erase such customization (I assume you know how to deal with Xresources, repost if you have problems). If you want to type non ASCII-characters in your emacs under Xterm, you will have to tell emacs which coding system the terminal use; I have in my .emacs: (set-terminal-coding-system 'latin-1) (set-keyboard-coding-system 'latin-1) You can even use the mouse wheel under the xterm: (mouse-wheel-mode 1) Olive