Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!cbosgd!cwruecmp!hal!ncoast!allbery
From: allbery@ncoast.UUCP
Newsgroups: comp.sources.d,comp.sources.wanted
Subject: Wanted---Source for LESS (or some other MORE variant)
Message-ID: <2825@ncoast.UUCP>
Date: Wed, 8-Jul-87 21:58:54 EDT
Article-I.D.: ncoast.2825
Posted: Wed Jul 8 21:58:54 1987
Date-Received: Sat, 11-Jul-87 16:42:12 EDT
References: <173@titn.TITN>
Reply-To: allbery@ncoast.UUCP (Brandon Allbery)
Followup-To: comp.sources.d
Organization: Cleveland Public Access UN*X, Cleveland, Oh
Lines: 31
Xref: utgpu comp.sources.d:920 comp.sources.wanted:1345
As quoted from <173@titn.TITN> by jordan@titn.TITN (Jordan Bortz):
+---------------
| Hello -- I just brought 386/IX (i.e. AT&T's V.3 for 386 AT's), and,
| though it does demand paging, it doesn't even come with a MORE!
+---------------
"more" is Berzerkeloid, as a result AT&T ignores it until they can find a way
to make it look like their idea (ksh vs. csh), or until people scream too much
(vi) (1/2 ;-}). In this case, the former.
more() {
pg -n -s -p'-- More(%d) --' $*
}
I actually prefer pg, since it allows positioning to arbitrary "pages", either
absolute or relative, and caches pipes in temp files so you can jump to the
end of a pipe ($) and then back up to the beginning (1).
In case you're interested: -n means no newline after single-character
commands, -s means reverse video prompt, -p sets the prompt, and %d in the
prompt string (optional) displays the current page number. Unlike the Xenix
2.x version of more, it doesn't convert overstrikes to standout or underline
on the terminal; I really liked that "more". (It may have been Model 16 only;
certainly Xenix 3.0 on the Tandy 6000 doesn't have it, nor does Altos. Oh,
well....)
--
[Copyright 1987 Brandon S. Allbery, all rights reserved] \ ncoast 216 781 6201
[Redistributable only if redistribution is subsequently permitted.] \ 2400 bd.
Brandon S. Allbery, moderator of comp.sources.misc and comp.binaries.ibm.pc
{{ames,harvard,mit-eddie}!necntc,{well,ihnp4}!hoptoad,cbosgd}!ncoast!allbery
<>