9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] oneko for rio
Date: Fri, 27 Apr 2001 09:42:10 -0400	[thread overview]
Message-ID: <20010427134212.689F8199ED@mail.cse.psu.edu> (raw)

	Or, anyone want to change line 31 of
	/sys/src/cmd/rio/fsys.c to
		{ "screen",	Qscreen,	0600 ),
	and try the experiment?

It takes more than a chmod of a file to implement a driver.  /dev/screen
is provided by rio; the write interface to the underlying /dev/draw is
provided through an RPC protocol, not direct data writes, which don't
match well to the 2-d quality of the data.  /dev/screen could in principle
be writable but it will take changes to a lot more than line 31.

	The absolute mouse position would be
	determinable by adding the local position to the difference
	in LLCs of /dev/screen and /dev/window;

False.  The mouse position is always in absolute coordinates unless
the user program does extra work.

And as for the return value of main: enough already!  The subject
isn't worth all this clutter in our mailboxes.

-rob



             reply	other threads:[~2001-04-27 13:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 13:42 rob pike [this message]
2001-04-27 16:32 ` Douglas A. Gwyn
2001-05-07  7:05   ` YAMANASHI Takeshi
  -- strict thread matches above, loose matches on Subject: below --
2001-05-07  8:25 okamoto
2001-04-26 10:02 rog
2001-04-26  9:57 rob pike
2001-04-26 13:19 ` Boyd Roberts
2001-04-27  7:28   ` YAMANASHI Takeshi
2001-04-27  9:10 ` Douglas A. Gwyn
2001-04-26  8:30 YAMANASHI Takeshi
2001-04-26  9:28 ` Boyd Roberts

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=20010427134212.689F8199ED@mail.cse.psu.edu \
    --to=rob@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).