Article View: news.software.readers
Article #264342Re: [slrn] in tmux
From: J.B. Nicholson
Date: Tue, 18 Aug 2020 22:00
Date: Tue, 18 Aug 2020 22:00
51 lines
3643 bytes
3643 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > Trying to start tmux with slrn running in a pane fails. tmux new -s main-slrn slrn \; split-window top \; select-pane -t 0 \; select-layout even-horizontal \; resize-pane -x 33% -t 0 works for me when I'm not running slrn with that same newsrc somewhere else. In summary: I think that the root of your problem is that you haven't specified what to do with a tmux pane when the program running in that pane ends. tmux (by default) apparently closes the pane and expands other panes to occupy the newly available space. This issue really doesn't have anything to do with slrn per se. At length: I think that you'd be better off experimenting with commands that are simpler and you can see what's going on while simultaneously leaving slrn out of the picture in order to prove to yourself that this is all about tmux behavior. To that end, I suggest making an executable shell script that does nothing for 30 seconds and make a second script that does nothing for 60 seconds. Run both programs in separate tmux panes with the following tmux command (which is identical to the tmux command you posted except for the programs being run in either pane and the tmux status bar text which is completely cosmetic) tmux new -s main-foobar 30sdelay \; split-window 60sdelay \; select-pane -t 0 \; select-layout even-horizontal \; resize-pane -x 33% -t 0 and watch as after 30 seconds the 30sdelay program ends and its tmux pane disappears. Simultaneously, the 60sdelay tmux pane expands to occupy the space the former 30sdelay pane used (60sdelay pane "takes up the full terminal"). After 60 seconds, see the 60sdelay program end and then tmux end immediately thereafter (probably because there are no tmux panes). There's no code in either delay program to take up the full terminal. Try making a program that ends immediately and run that in place of the 30 second delay program then watch as the 60sdelay program gets a full-screen tmux pane, runs for 1 minute, then ends; the same thing happens as above but without the initial 30 second delay. This is the same behavior as what you were describing but without slrn involved. If slrn ends quickly and never appears in a pane that's a sign that you're doing something with slrn to cause it to end quickly, the most likely case is trying to run a 2nd instance of slrn using the same newsrc as an already-running instance of slrn. You could try adding a delay after slrn runs to see what error message slrn gives you and diagnose the problem from there. In the end, all of the behavior you described has nothing to do with slrn and everything to do with how tmux handles its panes when a command ends.
Technical Details
Message-ID:
<slrnrjojrj.4n0s.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-mailReferences:
<slrnrjjg9a.2vm3.g.kreme@ProMini.lan> <slrnrjmnev.64u.jbn@forestfield.org> <slrnrjn818.et1.g.kreme@ProMini.lan>Show Full Headers
Complete Article Headers
Message-ID: <slrnrjojrj.4n0s.jbn@forestfield.org> Subject: Re: [slrn] in tmux Date: Tue, 18 Aug 2020 22:00:19 +0000 From: "J.B. Nicholson" <jbn@forestfield.org> References: <slrnrjjg9a.2vm3.g.kreme@ProMini.lan> <slrnrjmnev.64u.jbn@forestfield.org> <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 Newsgroups: news.software.readers Organization: solani.org Injection-Date: Tue, 18 Aug 2020 22:00:19 -0000 (UTC) Injection-Info: solani.org; logging-data="8537"; mail-complaints-to="abuse@news.solani.org" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:lzNc3FpHPthb3dSJ9Ulf57kV6g4= X-User-Id: eJwNxMEBwEAEBMCWCNYp55Dtv4RkHhMGxaQj4MGgRl0/N7efaq65tPxJ7pk1JpHwOi9nVSH+ARhEENY=