home *** CD-ROM | disk | FTP | other *** search
- [ATISNG.CNV]
- [G. Cisneros, 4.12.85]
- [[Prints files with a heading, single-sided]]
-
- [process a file at a time]
- (()()(0)(
- (<0>,(%p,(^[)@(^[)6)(WHILE,(8 9 1),<=>,(and,<[14]>,<8>,<-->:<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>))(i,0:(R))(%C,<8>),<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
-
- [add disk id]
- (()()(0 1)(
- (<0> (ITR, )<1>,<0><1>):
- (<0><,><,>(ITR,<,>)<1>,<0><,><1>):
- (<>,);
- (<0>(or,<,>,<>)<1>,(nf,<0>,<-->:,(%Lr):<0>)<,>(p,<1>));
- )) p
-
- [main - gather directory entries for the given list]
- (()(
- ( ) B
- ((%R,<8>)) R
- )()(
- (,(a,(WHILE,(0 1 2),(p,(&u,<=>)<,>),<0>:<1><,><2>,<<
- >>(until,(%S,<0>:<1>),Not Found,<<
- >>(IF,(1 2),<=>,<[1]>(and,<[8]>,<1>)<<
- >>(and,<[3]>,<2>),<0>:<1>.<2>),<<
- >>(%A,<0>:<1>),),<2>)));
- ))
-
- [end]