9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Stuart Morrow <morrow.stuart@googlemail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Magic Mouse in 9vx?
Date: Sun, 28 Feb 2010 12:58:57 +0000	[thread overview]
Message-ID: <c85efc901002280458x5cdf05bfn86e2f09d4b67c72e@mail.gmail.com> (raw)
In-Reply-To: <162874A2-914B-4383-BF38-475B2071F69F@9srv.net>

On Sun, Feb 28, 2010 at 3:27 AM, Anthony Sorace <a@9srv.net> wrote:
>        The multi-touch stuff added to plan9ports to make the Apple 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, though,
> 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 = /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



  reply	other threads:[~2010-02-28 12:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-28  3:27 Anthony Sorace
2010-02-28 12:58 ` Stuart Morrow [this message]
2010-02-28 14:54   ` erik quanstrom
2010-02-28 19:24     ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c85efc901002280458x5cdf05bfn86e2f09d4b67c72e@mail.gmail.com \
    --to=morrow.stuart@googlemail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).