🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Olly Betts Thu, 12 Sep 1996 00:00
Re: slrn shell to command prompt?
#25901
Author: Olly Betts
Date: Thu, 12 Sep 1996 00:00
19 lines
1331 bytes
In article <slrn53dcnk.gaa.nospam@unix1.netaxs.com>, Bob Alpert wrote:
>Is there a command in slrn 0.9.0.0 to shell out to a command prompt?

No, but in the Unix version (which you appear to be using) Ctrl-Z will
suspend slrn, and drop you back to the underlying shell.  To return to slrn,
use 'fg' (foreground) (or '%' for short -- only Unix would have a short form
of a 2 letter command).

It seems from looking at the relevant code (in slrn.c) that it's possible
this won't work in all cases (in particular if the shell doesn't support it
or SIGSTOP isn't defined in signal.h).

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Re: slrn shell to command prompt?
#25884
Author: John E. Davis
Date: Thu, 12 Sep 1996 00:00
30 lines
1466 bytes
On 12 Sep 1996 09:15:51 GMT, Olly Betts <olly@mantis.co.uk>
wrote:
 : No, but in the Unix version (which you appear to be using) Ctrl-Z will
 : suspend slrn, and drop you back to the underlying shell.  To return to slrn,

It is possible to execute a shell command via a macro in 0.9:

define shell_cmd ()
{
   variable cmd;
   
   cmd = read_mini ("Shell cmd: ", "");
   !if (strlen (cmd))
     return;
   
   () = system (cmd);
}
definekey ("shell_cmd", "\e!", "group");
definekey ("shell_cmd", "\e!", "article");

However, the output of the command may be lost when control passes
back to slrn and it redraws the screen.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads