🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59853

Re: SLRN Capital L

#59853
From: Dawn Owens-Nicholson
Date: Thu, 30 Mar 2000 00:00
48 lines
3151 bytes
Drazen Kacar wrote:

> And it would be helpfull if slrn had command_after hook which would be
> called after slrn completed processing any user command. Determining if
> the article is visible after user typed h' (for example) is not the
> easiest thing in the world.

From the documentation on slrn's S-Lang API:

   If one only want to know whether or not there is an article visible in
   the window, then use

         _is_article_visible () & 1

so the following is probably what you want to do:

   if (_is_article_visible () & 1) { ...article is visible... }
   else { ...article is invisible... }

While wrapping intrinsics means your macros won't be called by other
people's macros and it's harder to combine them in custom ways, *sometimes*
that's a good thing.  Since it doesn't take much to discover this state of
the screen, it's not a big deal to make your macros check for it.

> So... John, could we have command_hook and some more get_* functions?
> There is set_article_window_size(), but no get_article_window_size(),
> so determining just where to put a window which shows X-Face is hard.

Considering you can't create 'windows' on slrn's screen from S-Lang, you'll
probably want to use replace_article() to replace the text of the current
article.  Depending on how much work you want to put into this, you could
make textual windows with replace_article(). >
[get|set]_summary_window_size() would also be nice.

I think it's a bad idea to have a large set of get/set functions each one
tailored to a specific feature.  It's better to have a set of arguments one
can plug into a common get/set pair of functions (like slrnrc settings and
get_variable_value()/set_[type]_variable()).

> Or a general get_screen_layout(), which should return everything that
> has any relevance to the way things are being displayed on the screen,
> including selected colors.

Screen scraping isn't necessary.  Being able to get the state of slrnrc
settings is much better (for instance, having a way to get to the color
settings, key/function mappings and quote regular expressions).

Technical Details
Message-ID: <slrn8e7d60.2s1.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: <slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: SLRN Capital L
Date: Thu, 30 Mar 2000 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr>
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: 604491070
X-Complaints-To: abuse@uiuc.edu
X-Trace: vixen.cso.uiuc.edu 954447026 128.174.5.9 (Thu, 30 Mar 2000 14:10:26 CST)
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.6.2 (HP-UX)
NNTP-Posting-Date: Thu, 30 Mar 2000 14:10:26 CST
Newsgroups: news.software.readers