From owner-freebsd-questions Wed Mar 8 18:43:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by hub.freebsd.org (Postfix) with ESMTP id 1A98037B576 for ; Wed, 8 Mar 2000 18:43:09 -0800 (PST) (envelope-from mark@ukug.uk.freebsd.org) Received: from [213.1.154.206] (helo=parish.my.domain) by ruthenium with esmtp (Exim 2.05 #1) id 12Snra-0003SZ-00; Wed, 8 Mar 2000 21:19:26 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id VAA01372; Wed, 8 Mar 2000 21:16:54 GMT (envelope-from mark) Date: Wed, 8 Mar 2000 21:16:53 +0000 From: Mark Ovens To: Jim Weeks Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: weird vi behavior in X Message-ID: <20000308211653.B234@parish> References: <38C681B9.46E48541@siteplus.com> <38C6836D.112501B1@siteplus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38C6836D.112501B1@siteplus.com>; from jim@siteplus.com on Wed, Mar 08, 2000 at 11:44:30AM -0500 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 08, 2000 at 11:44:30AM -0500, Jim Weeks wrote: > I meant to say I have NOT been able to stop this behavior. > > Jim Weeks wrote: > > > Good day, > > > > I am running the latest version of STABLE and Afterstep. In fact I did > > a make world this morning. Any way, when searching in vi from an xterm > > if I do "/search" and hit the enter button on the numeric key pad vi > > goes to the line above the match and inserts an "M". I have tried > > several keymaps and several adjustments to XF86Config and have been able > > to stop this behavior. It doesn't happen if you use the normal enter > > key. Just the one on the numeric keypad. > > > > Any one else seen this? Yeah, and you will also find that the cursor keys on the numeric keypad will do similar things. The output from xev(1) gives us a clue: The "normal" RETURN key: KeyPress event, serial 21, synthetic NO, window 0x4c00001, root 0x25, subw 0x0, time 3362131098, (97,79), root:(170,237), state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 characters: " KeyRelease event, serial 21, synthetic NO, window 0x4c00001, root 0x25, subw 0x0, time 3362131157, (97,79), root:(170,237), state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 characters: " ...and the numeric keypad one: KeyPress event, serial 21, synthetic NO, window 0x4c00001, root 0x25, subw 0x0, time 3362128432, (97,79), root:(170,237), state 0x10, keycode 108 (keysym 0xff8d, KP_Enter), same_screen YES, " XLookupString gives 1 characters: " KeyRelease event, serial 21, synthetic NO, window 0x4c00001, root 0x25, subw 0x0, time 3362128492, (97,79), root:(170,237), state 0x10, keycode 108 (keysym 0xff8d, KP_Enter), same_screen YES, " XLookupString gives 1 characters: " They produce different keysyms, Return and KP_Enter. You can use xmodmap(1) to fix it. HTH > > > > Thanks, > > > > Jim > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message