home *** CD-ROM | disk | FTP | other *** search
- [ATISNG.CNV]
- [G. Cisneros, 9.9.86]
- [[Prints files with a heading, single-sided]]
-
- [process a file at a time]
- (()()()(
- (,(%p,(^[)@(^[)6)(WHILE,(8 9 1),<=>,(and,<-->(^@),<:P:><9>(^@))<1>,<<
- >>(%Or,CTR:pg)(%W,CTR:pg,1)<<
- >>(%p,(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%r,CTR:pg)(^MJJJ))<<
- >>(%Or,(%T,<8><9>))(i,0:(R))(%C,<8><9>),<1>));
- )) a
-
- [print up to 58 lines per page]
- (()()(0 1)(
- (<0>:(^Z),(until,<0>,63,(%p,(^J)),(#p,<=>),));
- (58:<0>,(%p,(^JJJJJ)(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%r,CTR:pg)(^MJJJ))0:<0>):
- (<0>:<1>,(%p,(^I)(z,<1>)(^MJ))(#p,<0>):(R)):
- )) i
-
- [trim to 80 characters]
- (()()(0)(
- ((and,<[80]>,<0>)<[1]>,<0> [);
- )) z
-
- [process command line tail]
- (()()(0 1)(
- (<0> (ITR, )<1>,<0><,><1>):
- (<0><,><,>(ITR,<,>)<1>,<0><,><1>):
- ((or,<,>,)<>,);
- (<,><0>,<0>);
- )) p
-
- [main - gather directory entries for the given list]
- ((
- ((and,(or,<-->:,)(ITR,<-->\),<8>)) P
- )(
- ( ) B
- ((%r,<8><9>)) R
- )()(
- (,(a,(WHILE,(8 1 2),(p,(&u,<=>)<,>),(and,<--><,>,<:P:><1><,>)<2>,<<
- >>(until,(%S,<8><1>),Not Found,<<
- >>(IF,(1),<=>,<[9]><1>,<8><1>(^@)),<<
- >>(%A),),<2>)));
- ))
-
- [end]