9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] rio-dependence of screenlock
Date: Tue, 26 Jan 2021 18:20:41 -0800	[thread overview]
Message-ID: <94BDD2D2C150CB56CF0A10C1DB7B2928@eigenstate.org> (raw)
In-Reply-To: <CABB-WO_=Y47ag=G-JBMV+wEW9-6DYo9kjeNFb=4sCWSADCSR_A@mail.gmail.com>

Quoth Stuart Morrow <morrow.stuart@gmail.com>:
> How screenlock works:
> 
> 1. Get screen size
> 2. Create new Rio window with that size, ignore return value
> 3. for(;;) warp mouse to centre.
> 
> There are two ways to do 1.  From the shell, they are:
> 
> A%  file /dev/screen
> B%  awk '{print $7"x"$8}' /dev/draw/new
> 
> Screenlock uses A. On the system console, you can in fact run
> screenlock by binding any static image over stub(4)'s /dev/screen.
> Recall that we don't check if we *actually got* a Rio window.
> 
> My patch uses B.  Runs on the system console just fine. In a nested
> Rio, no different from current.  It also tops itself so that a popup's
> right-click menu can't be used to delete it.  Popups aren't really the
> style on Plan 9, but one can easily imagine a script that catches
> kprints and tops a normally-hidden window.
> 
> I'll throw you a quid, whoever writes that.  I'd like to test that I know
> how to use Bitcoin, which seems the best way to do bounties (everyone
> can verify in blockchain.info, or in a local copy of the blockchain, that
> the payment was made and received).  Or Bitcoin Cash if you insist on
> something you can actually run on Plan 9.
>

The patch seems reasonable to me.
 


      parent reply	other threads:[~2021-01-27  2:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19  0:22 Stuart Morrow
2021-01-19  8:14 ` hiro
2021-01-19 17:58   ` Stuart Morrow
2021-01-19 20:01   ` ori
2021-01-19 20:27     ` Stuart Morrow
2023-12-11 22:26       ` [9front] " magma698hfsp273p9f
2021-01-27  2:20 ` ori [this message]

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=94BDD2D2C150CB56CF0A10C1DB7B2928@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    /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).