Article View: news.software.readers
Article #264337Re: [slrn] in tmux
From: J.B. Nicholson
Date: Tue, 18 Aug 2020 04:49
Date: Tue, 18 Aug 2020 04:49
48 lines
3170 bytes
3170 bytes
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. I was only able to reproduce the failure you describe when one of the commands failed to run, like trying to run multiple slrn sessions from the same newsrc: The first slrn ran properly, and every other concurrently run slrn command failed with an error telling me which process id (or "pid") "is locking the newsrc file." and then that slrn process ended. 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. I'd bet that the tmux users could help you with that. > 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. If any CLI program were capable of breaking out of the tmux screen splitting, tmux probably wouldn't be worth using. 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.
Technical Details
Message-ID:
<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-mailReferences:
<slrnrjjg9a.2vm3.g.kreme@ProMini.lan>Show Full Headers
Complete Article Headers
Message-ID: <slrnrjmnev.64u.jbn@forestfield.org> Subject: Re: [slrn] in tmux Date: Tue, 18 Aug 2020 04:49:35 +0000 From: "J.B. Nicholson" <jbn@forestfield.org> References: <slrnrjjg9a.2vm3.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 X-Received-Bytes: 3222 Injection-Date: Tue, 18 Aug 2020 04:49:35 -0000 (UTC) Newsgroups: news.software.readers X-User-Id: eJwFwQERADEIAzBL8KVwyHnG6l/CEiI9T0Uyg6K6C65yvyMTcbUW1RZTveR8bpzzY61woXwSoBDS Cancel-Lock: sha1:A8Y0mZwlKUTw5HUVwiyEb+fIx+M= User-Agent: slrn/1.0.3 (Linux) X-Received-Body-Crc: 358968600 Injection-Info: solani.org; logging-data="20919"; mail-complaints-to="abuse@news.solani.org" Organization: solani.org