From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 07:19:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A76B216A41F for ; Mon, 10 Oct 2005 07:19:42 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: from mail.vivodinet.gr (mail3.vivodinet.gr [80.76.39.13]) by mx1.FreeBSD.org (Postfix) with SMTP id D95A143D46 for ; Mon, 10 Oct 2005 07:19:38 +0000 (GMT) (envelope-from ltsampros@upnet.gr) Received: (qmail 13663 invoked from network); 10 Oct 2005 07:19:35 -0000 Received: from dslcustomer-222-89.vivodi.gr (HELO bifteki.home.net) (83.171.222.89) by 0 with SMTP; 10 Oct 2005 07:19:35 -0000 Received: from bifteki.home.net (localhost [127.0.0.1]) by bifteki.home.net (8.13.4/8.13.3) with ESMTP id j9A7K9r5075093; Mon, 10 Oct 2005 10:20:09 +0300 (EEST) (envelope-from gaghiel@bifteki.home.net) Received: (from gaghiel@localhost) by bifteki.home.net (8.13.4/8.13.3/Submit) id j9A7K8g4075092; Mon, 10 Oct 2005 10:20:08 +0300 (EEST) (envelope-from gaghiel) Date: Mon, 10 Oct 2005 10:20:08 +0300 From: Leonidas Tsampros To: Kirk Strauser Message-ID: <20051010072008.GA73347@bifteki.lan> References: <200510091641.48542.kirk@strauser.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510091641.48542.kirk@strauser.com> User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: Happy Hacking keyboard, Emacs, and meta X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 07:19:42 -0000 On Sun, Oct 09, 2005 at 04:41:42PM -0500, Kirk Strauser wrote: > I have an older PS2 Happy Hacking Lite Keyboard (love it!), but I'm getting > reacquainted with Emacs and one aspect of the keyboard is driving me nuts: I > can't seem to get the diamond keys (like "Windows keys") to send only Meta to > Emacs. > > I use KDE on FreeBSD 6.0-BETA5 and have it set to run "setxkbmap -option > -option altwin:meta_win" at login. If I run "xev" and press those keys, I > see events like: > > KeyPress event, serial 29, synthetic NO, window 0x4000001, > root 0x9e, subw 0x0, time 110894777, (1067,874), root:(1071,907), > state 0x0, keycode 115 (keysym 0xffe7, Meta_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > ... and ... > > KeyPress event, serial 26, synthetic NO, window 0x4000001, > root 0x9e, subw 0x0, time 110914901, (651,795), root:(655,828), > state 0x0, keycode 116 (keysym 0xffe8, Meta_R), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > However, if I run Emacs and type C-h k (describe-key) and then M-a, for > example, I get the error message "H-M-s-a is undefined" as though the > keyboard is sending Hyper-Meta-shift(?)-a instead. > > I'd like to get this fixed ASAP, as using ESC for Meta for the rest of my life > doesn't seem too appealing. When i use xterm , i have the following resource set: [-xrm] 'XTerm*metaSendsEscape: true' This one really helps when you've got to play with emacs or irssi.