home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
uupc.lzh
/
U
/
rn.uedit
< prev
Wrap
Text File
|
1990-02-06
|
3KB
|
93 lines
This command definition will read in the list of directories in which
the C-News package keeps its' articles.
On the KeyPad:
* normal-kpLparen Next Article (same as gadget1)
* normal-kpRparen Prev Article (same as gadget2)
Shft-kpLparen Show list of articles after current
Shft-kpRparen Show list of articles before current
On the Message Line:
* normal-gadget1 Next Article
* normal-gadget2 Prev Article
normal-gadget3 Post a followup
normal-gagdet4 Reply via e-mail
Shft-gadget1 Show list of articles after current
Shft-gadget2 Show list of articles before current
--------------------------------------------------------------------
The Next/Prev gadgets (1 & 2) move the cursor in buf39 either up or
down one line at a time looking for a line that begins with a digit.
When found, they call "virtual-gadget1" which loads in the file on
that line in the buffer. If not found, they print a message about
there not being any more articles in that direction.
--------------------------------------------------------------------
..<Startup:
gadgetName(1, "Next Article")
gadgetName(2, "Prev Article")
>
--------------------------------------------------------------------
<normal-gadget1:
runKey(normal-kpLparen) > ..Next Article
<normal-gadget2:
runKey(normal-kpRparen) > ..Prev Article
<shft-gadget1:
runKey(normal-f1) > ..Next File
<shft-gadget2:
runKey(shft-f1) > ..Prev File
--------------------------------------------------------------------
<normal-kpLparen:
if (isEmpty(buf39)) {
if (not runKey(virtual-gadget2))
returnFalse
} else {
moveCursor(buf39, sInvert)
moveCursor(buf39, downLine)
}
if (is(buf39, eFile)) {
putMsg("No more articles!")
returnFalse
}
runKey(virtual-gadget1)
>
--------------------------------------------------------------------
<normal-kpRparen:
if (isEmpty(buf39)) {
if (not runKey(virtual-gadget2))
returnFalse
} else
moveCursor(buf39, sInvert)
if (not moveCursor(buf39, upLine)) {
putMsg("No previous article!")
returnFalse
}
runKey(virtual-gadget1)
>
--------------------------------------------------------------------
<virtual-gadget1:
equateLoc(buf39, sInvert, atCursor)
moveCursor(buf39, eLine)
equateLoc(buf39, eInvert, atCursor)
moveCursor(buf39, eChar)
freeBuf(buf54)
insertRgn(buf54, eFile, buf39, invert)
if (not eqNum(n30, 0))
freeBuf(buf[n30])
if (loadFile(buf54))
equateNum(n30, curFile)
>
--------------------------------------------------------------------
<virtual-gadget2:
freeBuf(buf54)
if (not execute(buf39, "U:news_lart")) {
putMsg("Sorry. No articles could be found.")
returnFalse
}
equateLoc(buf39, atCursor, sFile)
equateNum(n30, 0)
>