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 24521 invoked from network); 3 Feb 2021 00:51:20 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2021 00:51:20 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 1ess; Tue Feb 2 18:56:47 -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 9ccbcf63 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Tue, 2 Feb 2021 13:09:55 -0800 (PST) Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit To: 9front@9front.org Date: Tue, 02 Feb 2021 13:09:53 -0800 From: ori@eigenstate.org In-Reply-To: <606D02A096CBB28137E68175AE4EB31D@hog> 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: metadata-oriented ACPI over SSL factory module Subject: Re: [9front] patch ssh.c extract window resolution Reply-To: 9front@9front.org Precedence: bulk Quoth kvik@a-b.xyz: > > It seems that we could avoid this code (also in mc, etc.) if rio > provided these metrics in a per-window file. > I don't think that rio should be providing metrics that make no sense if you use a variable width font. Not sure how I feel about making ssh provide them either, though. Since ssh uses getenv and interrupts, perhaps this can go into a program outside of ssh that runs in the same env? setsize ssh yourhost where sizehack() is essentially: void threadmain(int arc, char **argv) { pid = spawn(argv+1, argc-1); while(1){ recv(mc->resizec, nil); sz = windowsize(); setenv(...); write("/proc/%d/note", pid, "interrupt"); }