🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #51382

Re: slrn question

#51382
From: Dawn Owens-Nicholson
Date: Wed, 01 Sep 1999 00:00
33 lines
1694 bytes
David Cooke wrote:
> Is there a way to make slrn deal with these characters and display them
> (correctly???) as spaces?

With replace_article() you can make slrn display any string you want in the
article area.  So something like this could be done:

  variable article = article_as_string ();
  while (str_replace (article, char (0x0D), " ")) article = ();
  replace_article (article);

and bound to a key to make the article go through this processing.  You
could use this function:

  implements "my";
  static define remove_ctrl_m ()
  {
     variable article = article_as_string ();
     while (str_replace (article, char (0x0D), " ")) article = ();
     replace_article (article);
  }

Save the above function definition (into my_macros.sl in your homedir, for
example) and bind it to a key then load it into slrn with this in your
slrn.rc:

  interpret "my_macros.sl"
  setkey article my->remove_ctrl_m "M"

Of course, don't use this on an article where you really want to see ^M.
Running this on articles that don't have ^Ms is okay.

Technical Details
Message-ID: <slrn7sosq4.imf.bluemoon@ux6.cso.uiuc.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: <slrn7smbtf.ih.d.cooke@twodoves.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7sosq4.imf.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: slrn question
Date: Wed, 01 Sep 1999 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn7smbtf.ih.d.cooke@twodoves.net>
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: 519528458
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.5.7 (UNIX)
Newsgroups: news.software.readers