9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] patch ssh.c extract window resolution
Date: Tue, 02 Feb 2021 13:09:53 -0800	[thread overview]
Message-ID: <C74C7C015AED386F15E1832D141301BF@eigenstate.org> (raw)
In-Reply-To: <606D02A096CBB28137E68175AE4EB31D@hog>

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");
	}


      parent reply	other threads:[~2021-02-03  0:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 11:39 Steve Simon
2021-02-02 18:24 ` kvik
2021-02-02 19:56   ` Steve Simon
2021-02-02 22:06     ` Lyndon Nerenberg
2021-02-02 21:09   ` 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=C74C7C015AED386F15E1832D141301BF@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).