🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Larry W. Virden Thu, 28 May 1992 17:33
Trying to write a (t)rn macro
#1652
Author: Larry W. Virden
Date: Thu, 28 May 1992 17:33
25 lines
1773 bytes
I appear to be stuck in the writing of the following macro - perhaps someone
can pry me free ...


Here are my two macros.  The X macro is used to experiment with what the
%m setting is in various situations.  And the reason it appears to be
necessary is that there is a %m missing!  After KILL file processing but
before thread or article selection, there is a Type space to continue
pause.  This does NOT appear to be a pager %m - at least, when I reach
that point and type X, I do not get anything out.  Can anyone tell me
if %m is a p at that point?  I am trying to write the C macro (see below)
which would help me catch up on the groups by getting (t)rn to go thru
the KILL processing.  Of course, once C is working, then a second macro to
recursively call C is on its way...

X	%`echo macro m = .%m.>>/tmp/trn.out`

C	%(%m=n? :%(%m=t?q:%(%m=a?Mq?%(%m=p?Mq:C)))

-- 
Larry W. Virden			UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg,OH 43068-1614
America Online: lvirden
Re: Trying to write a (t)rn macro
#1653
Author: Larry W. Virden
Date: Fri, 29 May 1992 17:27
29 lines
2197 bytes
The good news is that I have my C macro (which I plan on using to catch
up (t)rn's idea of number of unread articles) almost done.  The bad news
is that it works TOO well!  It is a recursive macro now, but I do not
seem to be able to determine that I am at the end of the newsrc - I could
hard code something, but would rather not.

Here is what I have - perhaps one of you hard working rn macroites could
help:

C	%(%m!=[ntap]?C:%(%m=n? ^(C^):%(%m=t?q^(C^):%(%m=[ap]?Mq^(C^)))))

Basically, it says that if the mode isnt newsgroup, thread, article selections
or pager selection, return a C.  If it is one of those, then emit the
character required to enter a group, quit thread selection, and if either
in pager or article selection, mark the current article and then quit.  Each
step then re-executes the macro.

Works great - except it goes on for ever!

The problem is that %m treats the End of newsgroups as a newsgroup
selection prompt, with apparently the same newsgroup name as the last
newsgroup examined.  It would be nice if it were given another name - but
I dont want to hack my own hacks into trn until i check for an existing
mechanism...
-- 
Larry W. Virden			UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg,OH 43068-1614
America Online: lvirden
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