[comp.sys.ibm.pc] MORE.COM version 1.2

madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) (01/31/87)

Enclose is the newest version of MORE.COM.  I apologize to everyone
that got hold of version 1.0 and had problems with it.  Honestly, I
didn't think there would be a problem that was related to machine size.

The newer version has a couple of new things.  First, it can hold about
three times as many lines as before.  Second, it prints the percentage
through the file if it can.  Third, I fixed the bug for machines with
more than 512K.

For those of you who missed the first posting, MORE.COM is designed
for your PC and acts much like the UNIX utility "less".  It is designed
to run on near-compatibles (like Tandy 1000, THE PC+, IBM PC/XT/AT,
and Leading Edge).  It should run on most of them.  The only reason
why it won't run on all MS-DOS machines is that is uses its own screen
writing functions to improve its speed by several times.

For those of you who sent me mail:  thank you.  I read everything and
attempt to reply to it.  Our mailer has been busted, so that's been
spotty.  Basically, I'll look at your suggestions and may implement them
if I have the time.  I do have source code online now, so if you want it
just write and give me a good path back to you (preferably around the
harvard mailer, which spits back everything).  I'd appreciate any
modifications being sent to me and not just posted.  This way things
stay neater.  I'll post same-day if the modifications check out ok.

Several people responded to my original posting saying that my program
ran very fast under fansi-console.  Note that since my program bypasses
every screen output routine, it runs that fast anyway.  I don't have
fansi, so I program around it.

Enough said, here's the uuencoded version.  Feel free to distribute it
to anyone.  It is copyrighted, but the message is plain -- it's legal
to give it to anyone, so long as you don't sell it.  Enjoy!

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                   - Jim Frost * The Madd Hacker -
UUCP:  ..!harvard!bu-cs!bucsb!madd | ARPANET: madd@bucsb.bu.edu
CSNET: madd%bucsb@bu-cs            | BITNET:  cscc71c@bostonu
-------------------------------+---+------------------------------------
"Oh beer, oh beer." -- Me      |      [=(BEER) <- Bud the Beer (cheers!)

-- cut here --
begin 644 more.com
MZ7DLD)#-JT-O<'ER:6=H="`H0RD@,3DX-2!"3U),04Y$($EN8P($`+%7`#PS
M`````````````````````````````````````````````````````!1$969A
M=6Q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P:&`8O\-HH5,O:+]T8#\C:*#`+1<B8VB!0R[2OY
MB^=!'E86!Q8?_/.DB_Y>3D^+RD']\Z0?1XOG_R:&`;(0Z?W\CP:&`>B#]XO(
M6.AR`4B+]#:*%#+VB_P#^BO0=A4#\#O1=A,#\8O1'A8'%A_]\Z0?ZP(STH?W
M-H@4B^;_)H8!6XO\-HH%,N0#X$3_XX\&A@&+_#:*%3+V1XOW`_(VB@PR[4:+
MW@/9,\`KT7(>0`O)=!E"'A8'%A_\45=6\Z9>7UET!T!'2G7Q,\`?B^/_)H8!
MB`X``J,"`EN/!@8"CP8(`HDF"@*,%@P"4\0^!@(&5P;HVOVX`0!0H0("2.A"
M_\0^"@(&Z,?]Z/7^Q#X&`@;HO/W_-@("
N/\`Z"7_Z.#^B@X``NC7_>E7_Z,$
M`EN/!@("CP8&`H\&"`)3Q#X&`@97!NB*_;@!`%"A`@)(Z/+^H0("`P8$`@KD
M=1+$/@8"!NAL_5"X_P#HV/[HD_ZQ_^B,_<-;6/[(=02&Q/_CB1Z&`;(0Z;G[
MB_0VBEP",O\VBT`#BN"P`3:)0`/#6P/BB_0VB@0ZP708,N0#\(O\,NT#^9%!
M'A8?%@?]\Z0?1XOG_^,*Y'4%"L!T`<.R$>EP^UM:B_>#[""+_%$6!_P*[70'
M,L"J_LUU^QZ.VO.D'UFT("KE*N%T!S+`JO[,=?O_XUN#[""+_!8'N1``,\#\
M\ZO_X^CO`#8(!\.16UA3*LAR%C+M08KAZ-L`BLPV"`?0X',#0[`!XO3#B_1&
M1C:+?"`VCD0BBM4R]@/R,NT>%A_\\Z0?PB0`6XK5,O8R[8OT`_(#\8O\@\<@
M._=T#DY/'A8'%A_]\Z0?1XOG_^.X`0#K`C/`Z)4`

asf@sbcs.UUCP (02/04/87)

The recent posting of this program came to our site short and sort of
chewed up (lines within the uuencoding were not complete).  Could it
possibly be reposted if this has happened at other sites (otherwise
could the author e-mail me a copy)?

Sorry for posting this rather than sending mail, but our news program
doesn't seem to like sending private responses.

Thanks,

-- 
Alan S. Fink
UUCP:  {allegra, hocsd, philabs, ogcvax}!sbcs!asf
ARPA:  asf%sunysb.csnet@csnet-relay.ARPA
CSNET: asf@sunysb.edu