From: "Douglas A. Gwyn" <gwyn@arl.army.mil>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] oneko for rio
Date: Fri, 27 Apr 2001 09:10:05 +0000 [thread overview]
Message-ID: <3AE85783.87146579@arl.army.mil> (raw)
In-Reply-To: <20010426095719.D305819A06@mail.cse.psu.edu>
rob pike wrote:
> I agree. I think I could probably puzzle out a way to implement
> oneko but it will not be easy, to put it mildly.
Similar apps on the DMD/MTG were able to use the full-display
Bitmap data structure (named "display"), also Smouse/RealMouse
for the full-display mouse cursor location. Since the draw(3)
device interposes a file system between any (sub)window and the
root bitmap (background/desktop), there is no direct path for a
(sub)window process to access its containing window, and
furthermore, rio(1) is not in a position to intervene.
However, it would appear that all that is needed for this kind
of app is for /dev/screen to be writable (it is read-only for
some reason I don't understand). Perhaps /dev/screen can
support chmod so even if it is provided to the process in a
read-only state that could be changed and then top-level
drawing could be done. Or, anyone want to change line 31 of
/sys/src/cmd/rio/fsys.c to
{ "screen", Qscreen, 0600 ),
and try the experiment? The absolute mouse position would be
determinable by adding the local position to the difference
in LLCs of /dev/screen and /dev/window; I don't know whether
the mouse position is allowed to be reported as negative, but
it should be. (Some apps might then have to start checking,
but I suspect most would be okay.)
I have DMD/MTG source for eyes, swarm, and crabs if anyone
wants to try porting them.
next prev parent reply other threads:[~2001-04-27 9:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-07 8:25 okamoto
2001-04-27 13:42 rob pike
2001-04-27 16:32 ` Douglas A. Gwyn
2001-05-07 7:05 ` YAMANASHI Takeshi
2001-04-26 10:02 rog
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=3AE85783.87146579@arl.army.mil \
--to=gwyn@arl.army.mil \
--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).