From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] oneko for rio From: "rob pike" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010427134212.689F8199ED@mail.cse.psu.edu> Date: Fri, 27 Apr 2001 09:42:10 -0400 Topicbox-Message-UUID: 94339f6c-eac9-11e9-9e20-41e7f4b1d025 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