From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Peter_Valdemar_M=F8rch?= Newsgroups: gmane.emacs.help Subject: C-Home, C-End doesn't work in gnome-terminal - any idea why? Date: Fri, 23 Oct 2009 09:31:44 +0200 Message-ID: <4AE15BE0.5000604@morch.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 1256309980 19850 80.91.229.12 (23 Oct 2009 14:59:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 14:59:40 +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:59:33 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 1N1Lc5-0005wo-1h for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 16:59:33 +0200 Original-Received: from localhost ([127.0.0.1]:49974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Lc4-0000Q2-Hh for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 10:59:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1EdE-0004IR-Td for help-gnu-emacs@gnu.org; Fri, 23 Oct 2009 03:32:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1Ed9-0004HY-W8 for help-gnu-emacs@gnu.org; Fri, 23 Oct 2009 03:32:16 -0400 Original-Received: from [199.232.76.173] (port=35677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Ed9-0004HP-T2 for help-gnu-emacs@gnu.org; Fri, 23 Oct 2009 03:32:11 -0400 Original-Received: from fep53.mail.dk ([80.160.77.118]:64946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1Ed9-0000l8-Br for help-gnu-emacs@gnu.org; Fri, 23 Oct 2009 03:32:11 -0400 Original-Received: from fep43.mail.dk ([195.41.46.226]) by fep53.mail.dk (InterMail vM.7.09.02.02 201-2219-117-103-20090326) with ESMTP id <20091023073148.YAGM24588.fep53.mail.dk@fep43.mail.dk> for ; Fri, 23 Oct 2009 09:31:48 +0200 Original-Received: from [172.22.216.100] (really [77.233.248.193]) by fep43.mail.dk (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20091023073148.PTLR759.fep43.mail.dk@[172.22.216.100]> for ; Fri, 23 Oct 2009 09:31:48 +0200 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Authentication-Info: Submitted using SMTP AUTH at fep43.mail.dk from [77.233.248.193] at Fri, 23 Oct 2009 09:31:46 +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:69179 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