Article View: news.software.readers
Article #34734Re: Pre-post hook in slrn?
From: da... John E. Davis
Date: Mon, 30 Jun 1997 00:00
Date: Mon, 30 Jun 1997 00:00
26 lines
1696 bytes
1696 bytes
On 29 Jun 1997 14:44:41 GMT, Lloyd Zusman <asf...@asfast.com>
wrote:
>Will there be a way from within 'post_filter_hook' to tell slrn not to
>post the article? One method I can think of would be to use the
>return value from 'post_filter_hook' to control this. Or perhaps the
>'error' routine could be used ... ???
Currently, slrn has an intrinsic function called `set_input_string'
that may be used to provide a response for prompts requesting multiple
character input (See README.macros). However, this does not work when
slrn prompts for a single character such as `Y' or `N' from a yes/no
prompt. For that reason, slrn 0.9.4.2 will provide the intrinsic
function `set_input_chars' that may be used for such prompts.
After slrn calls the filter hook, it will prompt for a single
character requestion whether or not to post, postpone, etc... You can
provide the answer from the hook by calling
set_input_chars ("n");
before returning from the hook.
--John
Technical Details
Message-ID:
<slrn5rddnf.40l.davis@mygir.davis.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu> <slrn5rbunf.3rb.davis@mygir.davis.net> <slrn5rct13.j1.asfast@ljz.asfast.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn5rddnf.40l.davis@mygir.davis.net> Subject: Re: Pre-post hook in slrn? Date: Mon, 30 Jun 1997 00:00:00 +0000 From: da...@space.mit.edu (John E. Davis) References: <slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu> <slrn5rbunf.3rb.davis@mygir.davis.net> <slrn5rct13.j1.asfast@ljz.asfast.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 253542309 Organization: Center for Space Research Newsgroups: news.software.readers,alt.lang.s-lang