From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29088 invoked from network); 27 Jan 2021 02:25:34 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 27 Jan 2021 02:25:34 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 1ess; Tue Jan 26 21:20:54 -0500 2021 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id a17b4c79 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Tue, 26 Jan 2021 18:20:43 -0800 (PST) Message-ID: <94BDD2D2C150CB56CF0A10C1DB7B2928@eigenstate.org> To: 9front@9front.org Date: Tue, 26 Jan 2021 18:20:41 -0800 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtual engine ActivityPub general-purpose-oriented session factory-based optimizer Subject: Re: [9front] rio-dependence of screenlock Reply-To: 9front@9front.org Precedence: bulk Quoth Stuart Morrow : > 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.