From owner-freebsd-questions@FreeBSD.ORG Sat Oct 26 13:51:54 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 16D9B378 for ; Sat, 26 Oct 2013 13:51:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC3B42E8F for ; Sat, 26 Oct 2013 13:51:53 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 4C7543C7A2; Sat, 26 Oct 2013 15:51:51 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r9QDphT3001930; Sat, 26 Oct 2013 15:51:43 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 26 Oct 2013 15:51:43 +0200 From: Polytropon To: Gary Kline Subject: Re: howto recognize the Shift and Alt keys when /pressed\ Message-Id: <20131026155143.12b15afb.freebsd@edvax.de> In-Reply-To: <20131023230226.GA2828@ethic.thought.org> References: <20131021161200.GA18556@ethic.thought.org> <20131022012804.98a017fa.freebsd@edvax.de> <20131021164926.GA19974@ethic.thought.org> <20131022125901.6f3366fd.freebsd@edvax.de> <20131022121555.GA24386@ethic.thought.org> <20131022221027.30108304.freebsd@edvax.de> <20131023163805.GA7143@ethic.thought.org> <20131024021132.44324417.freebsd@edvax.de> <20131025114233.GA28606@ethic.thought.org> <20131026024429.920d6e7e.freebsd@edvax.de> <20131023230226.GA2828@ethic.thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 13:51:54 -0000 On Wed, 23 Oct 2013 23:02:26 +0000, Gary Kline wrote: > Organization: Thought Unlimited. Public service Unix since 1986. > Of_Interest: With 27 years of service to the Unix community. > > On Sat, Oct 26, 2013 at 02:44:29AM +0200, Polytropon wrote: > > On Fri, 25 Oct 2013 11:42:33 +0000, Gary Kline wrote: > > > On Thu, Oct 24, 2013 at 02:11:32AM +0200, Polytropon wrote: > > > > On Wed, 23 Oct 2013 16:38:05 +0000, Gary Kline wrote: > > > > No need to re-invent the wheel here. Just "attach to" the > > > > responsible components of the OS mentioned above. In C. :-) > > > > > > > > > > > > > > > > > I wonder if I could take the src of xev.c and then, > > > seeing what it does when I click on CTRL, ATL, CAPS LOCK, > > > anf SHIFT. MAke any sense? > > > > Yes, makes _perfectly_ sense as long as you're running X. > > The X event viewer is a very good example on how to find > > out the key codes. You simply need to get that "in between" > > in the input chain so the keys keep working (instead of > > "making them disappear" by reading them _from_ the input > > buffer). I'd imagine that this is possible. > > > > > > > I havent searched that far, but cant find xev.c; can you dig it out > of the src and send it my way? It's in the ports collection. Simply do the following: # cd /usr/ports/x11/xev/ # make fetch # make extract # make patch # cd work/xev-1.1.0 and you'll find xev.c and all other files belonging to that program. Note that my installation here is quite old (8-STABLE as of summer 2011) so there might be a newer version of xev in the ports collection already. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...