🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3532

Re: Searching WITHIN an article [in xrn]

#3532
From: Greg Earle
Date: Thu, 11 Mar 1993 10:41
173 lines
8484 bytes
In article <1993Mar10.005901.18904@wdl.loral.com> mjb@spl1.spl.loral.com writes:
>  I asked this some time ago and got no answer, so it's time to try
>again.  We use 'xrn' (an X UI for rn) which has the label "version 6.17
>(Motif)" on the window's header line.  I'm on a SPARC running SunOS/4.1.1.
>My question is this:  is there a way to search for a string WITHIN an article?

Easy, just put a binding for artSubSearch() into your XRn.artBindings: entries
in your .Xdefaults.  XRn (and XRnMotif) has a zillion resources and bindings
you can set; here's a snippet of my .Xdefaults that contains all my old XRn
and XRnMotif bindings (I deleted the ones that were specific to me or my site).

(Note that I said "my OLD XRn ... bindings" because I long since ditched XRn
 for trn/strn's threading capabilities ... )

Warning; the following is so large simply because it's a leftover from a
self-created challenge to myself to see how many fonts, colors, bindings, etc.
I could use for a single program (-:

--------------------------  >8  Snip snip  8<  -------------------------------
XRn.Gripe.geometry:     +50+50
XRn.geometry:   760x770+0+0
XRn.artBindings:        \
  <Key>0x20:    doTheRightThing()       \n\
  :<Key>n:      artNextUnread() \n\
  :<Key>N:      artNext()       \n\
  <Key>0xe:     artSubNext()    \n\
  <Key>P:       artPrev()       \n\
  ^<Key>P:      artSubPrev()    \n\
  :<Key>-:      artLast()       \n\
  :<Key>/:      artSubSearch()  \n\
  <Key>f:       artFollowup()   \n\
  <Key>r:       artReply()      \n\
  <Key>s:       artSave()       \n\
  <Key>w:       artSave()       \n\
  <Key>|:       artSave()       \n\
  <Key>%:       artSave("| uudecode")   \n\
  :<Key>C:      artCancel()     \n\
  :<Key>v:      artHeader()     \n\
  ^<Key>X:      artRot13()      \n\
  :<Key>X:      artRot13()      \n\
  :<Key>c:      artCatchUp()    \n\
  :<Key>j:      artMarkRead()   \n\
  <Key>m:       artMarkUnread() \n\
  :<Key>k:      artKillSession()        \n\
  :<Key>K:      artKillLocal()  \n\
  :<Key>u:      artUnsub()      \n\
  <Key>q:       artQuit()\n
XRn.artButtonList:      artQuit,artNextUnread,artNext,artPrev,artCatchUp,artMarkUnread,artMarkRead,artPost,artNextGroup,artUnsub,artKillLocal,artExit,artGripe
XRn.confirmBox: on
XRn.deadLetters:        ~/dead.letter
XRn.editorCommand:      xterm -e vi %s
XRn.leaveHeaders:       Subject,From,Keywords,Organization,Really,X-Refs
XRn.mailer:     /usr/lib/sendmail -oi -t
XRn.maxLines:   7
XRn.minLines:   3
XRn.newsrcFile: ~/.newsrc
XRn.ngBindings: \
  <Key>0x20:    doTheRightThing()       \n\
  <Key>y:       doTheRightThing()       \n\
  :<Key>u:      ngUnsub()       \n\
  :<Key>c:      ngCatchUp()     \n\
  <Key>n:       ngNext()        \n\
  <Key>p:       ngPrev()        \n\
  <Key>-:       ngPrevGroup()   \n\
  :<Key>g:      ngGoto()        \n\
  :<Key>L:      ngAllGroups()   \n\
  <Key>q:       ngQuit()\n
XRn.ngButtonList:       ngQuit,ngRead,ngNext,ngCatchUp,ngGoto,ngRescan,ngUnsub,ngPost,ngGripe,ngAllGroups
XRn.printCommand:       enscript -G -f Courier-Bold9 -F Courier-Bold14 -k -h
XRn.saveMode:   mailbox,headers
XRn.savePostings:       ~/.article
XRn.signatureFile:      ~/.signature
XRn.tmpDir:     /tmp
XRn.topLines:   10
XRn*Box.addQuit.background:     red
XRn*Box.addQuit.foreground:     Black
XRn*Box.artMarkUnread.font:     9x15
XRn*Box.artNextUnread.font:     9x15
XRn*Box.artQuit.background:     red
XRn*Box.artQuit.foreground:     Black
XRn*Box.artSave.background:     LimeGreen
XRn*Box.artSave.foreground:     NavyBlue
XRn*Box.ngExit.background:      orange
XRn*Box.ngExit.foreground:      yellow
XRn*Box.ngQuit.background:      red
XRn*Box.ngQuit.foreground:      Black
XRn*Box.ngRescan.background:    violet
XRn*Box.ngRescan.foreground:    cyan
XRn*Box.ngSubscribe.background: green
XRn*Box.ngSubscribe.foreground: blue
XRn*Box.ngUnsub.background:     blue
XRn*Box.ngUnsub.foreground:     green
XRn*font:       8x13bold
XRn*Command.font:       -linotype-new century schoolbook-medium-r-normal--12-120-72-72-p-67-iso8859-1
XRn*Command.background: coral
XRn*Command.foreground: White
XRn*Label.font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
XRn*Label.background:   cyan
XRn*Label.foreground:   blue
XRn*ShapeStyle: Oval
XRn*Text*Background:    yellow
XRn*Text*Foreground:    DarkSlateGray
XRn*Text*background:    yellow
XRn*Text*foreground:    DarkSlateGray
XRn*border:     LightGray
XRn*dialog*font:        -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
XRn*dialog*Command.background:  yellow
XRn*dialog*Command.foreground:  Black
XRn*dialog*Label.foreground:    NavyBlue
XRn*dialog*Text.background:     Wheat
XRn*dialog*Text.foreground:     SteelBlue
XRn*dialog*borderWidth: 2
XRn*dialog*background:  LimeGreen
XRn*dialog*foreground:  CornflowerBlue
XRn*background: plum
XRn*foreground: red
XRnMotif.Geometry:      760x770+0+0
XRnMotif.Gripe.geometry:        +50+50
XRnMotif.editorCommand: xterm -e vi %s
XRnMotif.leaveHeaders:  Subject,From,Keywords,Organization,Really,X-Refs
XRnMotif.newsrcFile:    ~/.newsrc
XRnMotif.printCommand:  enscript -G -f Courier-Bold9 -F Courier-Bold14 -k -h
XRnMotif*XmLabel.fontList:      8x13bold
XRnMotif*XmLabel.background:    cyan
XRnMotif*XmLabel.foreground:    blue
XRnMotif*fontList:      8x13bold
XRnMotif*XmPushButton.fontList: 9x15bold
XRnMotif*XmPushButton.background:       coral
XRnMotif*XmPushButton.foreground:       White
XRnMotif*Xmdialog*fontList:     -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
XRnMotif*Xmdialog*XmPushButton.background:      yellow
XRnMotif*Xmdialog*XmPushButton.foreground:      Black
XRnMotif*Xmdialog*Label.foreground:     NavyBlue
XRnMotif*Xmdialog*Text.background:      Wheat
XRnMotif*Xmdialog*Text.foreground:      SteelBlue
XRnMotif*Xmdialog*borderWidth:  2
XRnMotif*Xmdialog*background:   LimeGreen
XRnMotif*Xmdialog*foreground:   CornflowerBlue
XRnMotif*articleText*background:        yellow
XRnMotif*articleText*foreground:        DarkSlateGray
XRnMotif*vpane*index*listMarginHeight:  10
XRnMotif*vpane*index*listMarginWidth:   10
XRnMotif*vpane*index*background:        yellow
XRnMotif*vpane*index*foreground:        DarkSlateGray
XRnMotif*vpane*indexbuttons*scrollBarDisplayPolicy:     XmVARIABLE
XRnMotif*ShapeStyle:    Oval
XRnMotif*border:        LightGray
XRnMotif*XmRowColumn.addQuit.background:        red
XRnMotif*XmRowColumn.addQuit.foreground:        Black
XRnMotif*XmRowColumn.artMarkUnread.fontList:    9x15
XRnMotif*XmRowColumn.artNextUnread.fontList:    9x15
XRnMotif*XmRowColumn.artQuit.background:        red
XRnMotif*XmRowColumn.artQuit.foreground:        Black
XRnMotif*XmRowColumn.artSave.background:        LimeGreen
XRnMotif*XmRowColumn.artSave.foreground:        NavyBlue
XRnMotif*XmRowColumn.ngExit.background: orange
XRnMotif*XmRowColumn.ngExit.foreground: yellow
XRnMotif*XmRowColumn.ngQuit.background: red
XRnMotif*XmRowColumn.ngQuit.foreground: Black
XRnMotif*XmRowColumn.ngRescan.background:       violet
XRnMotif*XmRowColumn.ngRescan.foreground:       cyan
XRnMotif*XmRowColumn.ngSubscribe.background:    green
XRnMotif*XmRowColumn.ngSubscribe.foreground:    blue
XRnMotif*XmRowColumn.ngUnsub.background:        blue
XRnMotif*XmRowColumn.ngUnsub.foreground:        green
XRnMotif*background:    plum
XRnMotif*ScrollBarMgr.thickness:        22
XRnMotif*foreground:    red
-- 
	- Greg Earle
	  Phone: (818) 353-8695		FAX: (818) 353-1877
	  Internet: earle@isolar.Tujunga.CA.US
	  UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
Technical Details
Message-ID: <1nn51b$ft0@isolar.Tujunga.CA.US>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!isolar!isolar!not-for-mail
References: <1993Mar10.005901.18904@wdl.loral.com>

Show Full Headers
Complete Article Headers
Message-ID: <1nn51b$ft0@isolar.Tujunga.CA.US>
Subject: Re: Searching WITHIN an article [in xrn]
Date: Thu, 11 Mar 1993 10:41:47 +0000
From: earle@isolar.Tujunga.CA.US (Greg Earle)
References: <1993Mar10.005901.18904@wdl.loral.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!isolar!isolar!not-for-mail
Newsgroups: news.software.readers
Followup-To: news.software.readers
Organization: Personal Usenet site, Tujunga, CA USA
Lines: 173
Distribution: world
NNTP-Posting-Host: isolar.tujunga.ca.us
Summary: bind artSubSearch() in your .Xdefaults
Keywords: search