From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <162874A2-914B-4383-BF38-475B2071F69F@9srv.net> References: <162874A2-914B-4383-BF38-475B2071F69F@9srv.net> Date: Sun, 28 Feb 2010 12:58:57 +0000 Message-ID: From: Stuart Morrow To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Magic Mouse in 9vx? Topicbox-Message-UUID: dd2963e4-ead5-11e9-9d60-3106f5b1d025 On Sun, Feb 28, 2010 at 3:27 AM, Anthony Sorace wrote: > =A0 =A0 =A0 =A0The multi-touch stuff added to plan9ports to make the Appl= e Magic > Mouse work is really nice; I confess I didn't really believe Russ when he > described it as feeling natural, but it does. It's pretty easy to forget > about the mechanics of what's going on under your hand. These days, thoug= h, > I spend most of my interactive time in 9vx. Is anyone working on getting = the > multi-touch stuff working in 9vx? > > Anthony Sorace > Strand 1 doing things to 9vx seems like a bad idea compared to just having a p9p server with the /mouse and /mousectl for the magic mouse, and then mounting that in your 9vx /dev. same thing applies to drawterm, inferno, and probably glendix, which together with 9vx and p9p is your entire aviary with one projectile. so you detect whether it's drawterm or 9vx, and set root =3D /mnt/term or '#Z' respectively and you mount $root/tmp/ns.$USER.$DISPLAY/mouse. a linux way to get $USER and $DISPLAY is cat $root/proc/self/env | tr '\0' '\n' | grep, dunno if that works in OSX but whatever. stu