From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?=22Peter_Valdemar_M=F8rch_=28Lists=29=22?= <4ux6as402@sneakemail.com> Newsgroups: gmane.emacs.help Subject: C-Home, C-End doesn't work in gnome-terminal - any idea why? Date: Thu, 22 Oct 2009 11:59:25 +0200 Message-ID: <4AE02CFD.7030904@sneakemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1256309805 19284 80.91.229.12 (23 Oct 2009 14:56:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 14:56:45 +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 Oct 23 16:56:37 2009 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 1N1LZF-0004gQ-HS for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 16:56:37 +0200 Original-Received: from localhost ([127.0.0.1]:54524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1LZF-0007Fq-48 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 10:56:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0uSG-0006DJ-Tr for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 05:59:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0uSA-0006AX-HF for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 05:59:35 -0400 Original-Received: from [199.232.76.173] (port=47903 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0uSA-0006AO-9o for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 05:59:30 -0400 Original-Received: from fep50.mail.dk ([80.160.77.103]:60764) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <4ux6as402@sneakemail.com>) id 1N0uS9-00068l-ND for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 05:59:30 -0400 Original-Received: from fep48.mail.dk ([195.41.46.231]) by fep50.mail.dk (InterMail vM.7.09.02.02 201-2219-117-103-20090326) with ESMTP id <20091022095928.XHEK1279.fep50.mail.dk@fep48.mail.dk> for ; Thu, 22 Oct 2009 11:59:28 +0200 Original-Received: from [172.22.216.100] (really [77.233.248.193]) by fep48.mail.dk (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20091022095928.PEJJ1144.fep48.mail.dk@[172.22.216.100]> for ; Thu, 22 Oct 2009 11:59:28 +0200 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Authentication-Info: Submitted using SMTP AUTH at fep48.mail.dk from [77.233.248.193] at Thu, 22 Oct 2009 11:59:27 +0200 X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-Mailman-Approved-At: Fri, 23 Oct 2009 10:55:26 -0400 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:69176 Archived-At: I don't seem to be able to generate C-home,C-end keyboard sequences from a gnome-terminal. Anybody have any idea why? Or how to tweek either emacs or gnome-terminal to make it behave right? I realize this may be a gnome issue, but then please let me know that if you know that for sure. I decided to start here. To reproduce: * Start "emacs -nw" in a gnome-terminal * Type : C-h c C-home Expected output: runs the command beginning-of-buffer Actual output: runs the command move-beginning-of-line (pretty much the same for C-end too) If I omit the -nw parameter, so emacs opens in a separate X window or if I run it from an xterm instead of gnome-terminal, it also works. Using the short perl snippet below, xterm produces this output when I hit C-home: Decimal: 27 Hex: 1b Decimal: 91 Hex: 5b Decimal: 49 Hex: 31 Decimal: 59 Hex: 3b Decimal: 53 Hex: 35 Decimal: 72 Hex: 48 While gnome terminal produces this output: Decimal: 27 Hex: 1b Decimal: 79 Hex: 4f Decimal: 72 Hex: 48 Clearly this is different. Is that enough to point the finger at gnome-terminal? Or is there a 'take-foobar-into-account' setting somewhere in either emacs, terminals, xmodmap or other voodoo? I've used stty to produce the same settings for both terminals - no dice - they still behave differently. But I sometimes have to use emacs over a slow terminal, and I like to use gnome-terminals. Yes, I know I can use M-< and M->, but C-home is in my fingers from the X version. I hope I can get C-home, C-end to work! :-) Thanks for reading this far. Sincerely, Peter Perl snippet to see keyboard "chars": #!/usr/bin/perl -w use Term::ReadKey; ReadMode('cbreak'); print "Press keys to see their ASCII values. Use Ctrl-C to quit.\n"; while (1) { $char = ReadKey(0); last unless defined $char; printf(" Decimal: %d\tHex: %x\n", ord($char), ord($char)); } ReadMode('normal'); -- Peter Valdemar Mørch http://www.morch.com