[comp.sources.d] Wanted---Source for LESS

jordan@titn.TITN (Jordan Bortz) (07/05/87)

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!

Can anyone out there help me out?? Thanks much in advance...

			Jordan

-- 
=============================================================================
Jordan Bortz	Higher Level Software 1085 Warfield Ave  Piedmont, CA   94611
(415) 268-8948	UUCP:	(decvax|ucbvax|ihnp4)!decwrl!sun!dlb!plx!titn!jordan
=============================================================================

gwyn@brl-smoke.UUCP (07/07/87)

In article <173@titn.TITN> jordan@titn.TITN (Jordan Bortz) writes:
>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!

You can invoke the "pg" that should be supplied with your SVR3
in such a way that it operates very nearly like BSD "more".

allbery@ncoast.UUCP (07/09/87)

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
<<The opinions herein are those of my cat, therefore they must be correct!>>

mikep@ism780c.UUCP (Michael A. Petonic) (07/10/87)

In article <6080@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>In article <173@titn.TITN> jordan@titn.TITN (Jordan Bortz) writes:
>>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!
>
>You can invoke the "pg" that should be supplied with your SVR3
>in such a way that it operates very nearly like BSD "more".

You can also use the following alias to define more as pg with morelike
behaviour:
	$ alias more="pg -p 'page #%d   :' -ens"









-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The company and all my associates and friends and ESPECIALLY the 
government put me up to say all this useless trash.
MikeP    {seismo|sdcrdcf}!ism780c!mikep "Some of my best friends are Bigots..."

rick@pcrat.UUCP (Rick Richardson) (07/10/87)

In article <2825@ncoast.UUCP>, allbery@ncoast.UUCP (Brandon Allbery) writes:
> 
> "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.

Having learned and used Bourne, C-shell, and Korn in that order, I
wouldn't say that Korn is an attempt at a C-shell.  Rather, it's as
much beyond C-shell as C-shell was beyond Bourne shell, whilst still
retaining 99.994% Bourne shell compatibility.

But you're still right, you just used a bad example!
-- 
	Rick Richardson, President, PC Research, Inc.
(201) 542-3734 (voice, nights)   OR   (201) 834-1378 (voice, days)
		seismo!uunet!pcrat!rick

levy@ttrdc.UUCP (Daniel R. Levy) (07/10/87)

In article <6080@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes:
< In article <173@titn.TITN> jordan@titn.TITN (Jordan Bortz) writes:
< >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!
< 
< You can invoke the "pg" that should be supplied with your SVR3
< in such a way that it operates very nearly like BSD "more".

Quite true.  Here's a one-line "more" script:

exec pg -nsp'--more-- (page %d)' $*
-- 
|------------dan levy------------|  path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
|         an engihacker @        |		vax135}!ttrdc!ttrda!levy
|    at&t data systems division  |  disclaimer:  i am not a yvel nad
|--------skokie, illinois--------|