🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #5239

Re: anybody know how to "hook" into MORE?

#5239
From: Leila Burrell-Davis
Date: Tue, 24 Oct 1989 17:17
46 lines
2551 bytes
miken@hcr.UUCP (Mike Nemeth) writes:
>
> i am not enamoured of the "more" command. i have my own version that
> is more to my liking (ie. i can search forward/backward, back up a
> page, choose another file, ...). does anybody know of a way to call
> a user defined piece of code instead of the routine that gets called
> when i doubleclick on a file and choose "show"?

I enclose details of how to do this originally posted by Moshe Braner
when he posted his version of more some years ago:

---------------------Start of excerpt-------------------------------
Submitted-by: braner@tcgould.tn.cornell.edu (Moshe Braner)
Posting-number: Volume 1, Issue 41
Archive-name: more

To judge from mail I've been getting, it is time for a repost of MORE.TTP.
This is a little utility to print text files to the screen or a printer.
See the doc file, or invoke MORE with an empty command line for brief help.
I have replaced the desktop "SHOW/PRINT" thing (ugh!) so that when
I double-click on a document it is shown via MORE.  To do that I
modified the desktop.inf file.  The last lines of it now say:

...
#T 00 07 02 FF   BLACK HOLE@ @
#F FF 04   C:\BIN\MORE.TTP@ *.*@
#D FF 01   @ *.*@ 
#G 03 FF   *.APP@ @ 
#G 03 FF   *.PRG@ @
#F 03 04   *.TOS@ @
#P 03 04   *.TTP@ @ 

Works like a charm.  I just wish MORE would work from inside the Laser C
shell -- I don't know why it does not.
---------------------End of excerpt-------------------------------

Maybe Mike should consider submitting his version of more to the
binaries/sources group. I like and use Moshe's version but it only
allows one file to be inspected per invocation. Another alternative is
less but the ST version doesn't expand wildcards (and neither does
TOS) which is frustrating.
-- 
Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK
Tel: +44 273 678390   Fax: +44 273 678335  JANET: leilabd@uk.ac.sussex.syma
INTERNET: leilabd%syma.sussex.ac.uk@nsfnet-relay.ac.uk
BITNET: leilabd@syma.sussex.ac.uk      UUCP: leilabd@syma.uucp
Technical Details
Message-ID: <1452@syma.sussex.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!ukc!icdoc!syma!leilabd
References: <2315@hcr.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!ukc!icdoc!syma!leilabd
From: leilabd@syma.sussex.ac.uk (Leila Burrell-Davis)
Newsgroups: comp.sys.atari.st
Subject: Re: anybody know how to "hook" into MORE?
Message-ID: <1452@syma.sussex.ac.uk>
Date: 24 Oct 89 17:17:17 GMT
References: <2315@hcr.UUCP>
Organization: Computing Service, University of Sussex, UK
Lines: 46