home *** CD-ROM | disk | FTP | other *** search
- [ATIDOU.CNV]
- [G. Cisneros, 4.11.85]
- [[Prints files using both sides of the paper]]
-
- [process the odd-numbered pages, then the even-numbered ones]
- (()()(0)(
- (<0>,(%p,(^[)@(^[)6)(WHILE,(8 9 1),<=>,(and,<[14]>,<8>,<-->:<9>)<1>,<<
- >>(%Or,CTR:pg)(%W,CTR:pg,1,2)<<
- >>(%p,(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%R,CTR:pg)(^MJJJ))<<
- >>(%Or,(%T,<8>))(i,0:(R))(%C,<8>),<1>)<<
- >>(%t,Turn paper over and press return)(,(%R,TTY:))<<
- >>(%p,(^[)@(^[)6)(WHILE,(8 9 1),<0>,(and,<[14]>,<8>,<-->:<9>)<1>,<<
- >>(%Or,CTR:pg)(%W,CTR:pg,2,2)<<
- >>(%Or,(%T,<8>))(i,(s,0:(R)))(%C,<8>),<1>));
- )) a
-
- [skip up to 58 lines]
- (()()(0)(
- (<0>:(^Z),(if,(#%,(%R,CTR:pg)%2),0,(%p,(^JJJ))0,63):(^Z));
- (58:<0>,(%p,(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%R,CTR:pg)(^MJJJ))0:<0>);
- (<0>:,(#p,<0>):(R)):
- )) s
-
- [print up to 58 lines]
- (()()(0 1)(
- (<0>:(^Z),(until,<0>,63,(%p,(^J)),(#p,<=>),));
- (58:,(%p,(^JJJJJ))(s,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]