🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #25884

Re: slrn shell to command prompt?

#25884
From: 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


Technical Details
Message-ID: <slrn53gak5.qkj.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn53dcnk.gaa.nospam@unix1.netaxs.com> <slrn53fl67.pdl.olly@mantis.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn53gak5.qkj.davis@aluche.mit.edu>
Subject: Re: slrn shell to command prompt?
Date: Thu, 12 Sep 1996 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn53dcnk.gaa.nospam@unix1.netaxs.com> <slrn53fl67.pdl.olly@mantis.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 180169014
Organization: Center for Space Research
Reply-to: davis@space.mit.edu
Newsgroups: news.software.readers