🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264339

Re: [slrn] in tmux

#264339
From: Lewis
Date: Tue, 18 Aug 2020 09:32
70 lines
3884 bytes
In message <slrnrjmnev.64u.jbn@forestfield.org> J.B. Nicholson <jbn@forestfield.org> wrote:
> Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> I am trying to setup a tmux session with slrn. This command fails to
>> create the split window, I end up with a single pane taking up the full
>> terminal running htop.
>>
>> tmux new -s main-slrn  /usr/local/bin/slrn \;\
>> 	split-window htop \;\
>> 	select-pane -t 0 \;\
>> 	select-layout even-horizontal \;\
>> 	resize-pane -x 33% -t 0

> I ran

>   tmux new -s main-slrn  slrn \; split-window top \; select-pane -t 0 \; select-layout even-horizontal \; resize-pane -x 33% -t 0

> which is one long line because I couldn't get your command to run with
> the continued line backslashes and because I don't have htop
> installed. That worked for me.

How odd.

> I was only able to reproduce the failure you describe when one of the
> commands failed to run,

But if I run the command without the slrn command and then type slrn
manually, it works perfectly.

> Therefore this seemed to me as having to do with how tmux handled the
> window (portion of the screen) when the command designated for that
> portion ended. The other portion was allowed to occupy 100% of the
> screen. That makes this a tmux issue. Perhaps you want a tmux window
> that retains its shape even after the program running in that window
> is no longer running.

No,, I an trying to startup a session with slrn up and active in the
left pane and a shell in the right

>I'd bet that the tmux users could help you with that.

I have posted on the tmux mailing list but no answers there so far.

>> So, it seems the issue is with slrn.

> When I run tmux alone, press Control-b and then " I get a split view
> and I can run slrn in one of those views and slrn runs in only that
> view where I launched it, just as expected. This is the heart of what
> you're trying to do but you're pre-specifying some other configuration
> to specify the window/screen split parameters. This also tells me that
> slrn isn't doing anything to break out of the screen size it is given
> from tmux.

OK, now I am wondering, did I not say that I could do this manually with
no problem? Manually it works fine. Other commadns but slrn work fine.
Trying to start tmux with slrn running in a pane fails.

> So because I'm able to reproduce the failure you saw, create the
> desired outcome, and because I don't think slrn is doing anything to
> overcome tmux's screen sizing, I don't think that slrn is the issue.

Going to try some more variations.

-- 
Knowledge equals power... --... Power equals energy... People were
	stupid, sometimes. They thought the Library was a dangerous place
	because of all the magical books, which was true enough, but what
	made it really one of the most dangerous places there could ever
	be was the simple fact that it was a library. Energy equals
	matter... --... Matter equals mass. And mass distorts space. It
	distorts it into polyfractal L-Space. --Guards! Guards!
Technical Details
Message-ID: <slrnrjn818.et1.g.kreme@ProMini.lan>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnrjjg9a.2vm3.g.kreme@ProMini.lan> <slrnrjmnev.64u.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnrjn818.et1.g.kreme@ProMini.lan>
Subject: Re: [slrn] in tmux
Date: Tue, 18 Aug 2020 09:32:24 +0000
From: Lewis <g.kreme@gmail.com.dontsendmecopies>
References: <slrnrjjg9a.2vm3.g.kreme@ProMini.lan> <slrnrjmnev.64u.jbn@forestfield.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Organization: Miskatonic U
Lines: 70
Injection-Date: Tue, 18 Aug 2020 09:32:24 -0000 (UTC)
User-Agent: slrn/1.0.3 (Darwin)
Cancel-Lock: sha1:rTur7JHUI4/vEpsylQgdgQ6jZfo=
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
X-Clacks-Overhead: GNU Terry Pratchett
Mail-Copies-To: nobody