Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner From: braner@batcomputer.tn.cornell.edu (braner) Newsgroups: comp.sys.atari.st Subject: Re: A program to print files, expanding tabs Message-ID: <2033@batcomputer.tn.cornell.edu> Date: Thu, 15-Jan-87 01:11:04 EST Article-I.D.: batcompu.2033 Posted: Thu Jan 15 01:11:04 1987 Date-Received: Fri, 16-Jan-87 00:50:06 EST References: <2017@batcomputer.tn.cornell.edu> Reply-To: braner@batcomputer.UUCP (braner) Organization: Theory Center, Cornell University, Ithaca NY Lines: 72 Summary: An enhanced version [] Here is a vastly enhanced version of 'PRINT'. Reminder: this program prints a text file with tabs expanded into (8) spaces. Added options: skip-over-the-perforation extra left margin manual entry of printer control characters You may enter the options from the command line ([] means: optional): "[-s] [-m#] [-c] filename" -s to skip over perforation -m# sets extra left margin to # columns -c to get to type in printer control characters (you enter them interactively) Alternatively, if the comand line is empty, PRINTER.TTP will ask you about the file name and the options. Enter control characters carefully: you cannot edit them. End the control string with (use Control-M for ASCII 13). Note that you enter TWO strings: one will be sent to the printer before the file text, the other one afterwards. You may abort the printout by pressing . This is a mundane but important utility. It is written in assembler language (for practice) and the source is available upon request. - Moshe Braner ~~~~~~~~~~~~~~~~~~~~~ cut here ~~~~~~~~~~~~~~~~~~~~~ begin 644 print.ttp M8!H 6L "IO 0@/ *@ O "\-0F<_ M/ !*3D'?_ Q*@&8 UA">0 !:Q">0 !:Y">0 !;#;_ ( 2'6=F M2?D 6X4T$0'0P "!G#@P EG" P "UG#!C 40 !JX_/ :3D%0 !;!L"GH@ M80 ! %)&8.Y"1C\\ (_/ !3DU8CTI 9Q0_/ "/SP DY-6(\, ;9P ! M,+G+91!A #B9@ "E?Y %M&!>&AP,!0 -9AZYRV4080 QF8 I7^0 M!;1@0AH4# 4 "F8Z8-H,!0 *9S(,!0 )9A1Z(&$ (I21C & D !V;P8 #_ MO&$ 'A21F _[)A ""9@#_EE?Y %M$IY %M&<(# 0 "F< *YZ#6$ M $YZ"F$ $A*.0 !;1F "82GD 6L9P#_)C Y %ME) ,\ 6V#$ M/&T _Q!\!7H-80 %GH*80 $%'.__)">0 !;9@ /[T& 5(A3\%/SP #\\ M -.35R/3G5*N0 !LAG \2'D ;:+SP "0 /SD 6R/SP /TY!W_P M ,2H!K R9P +I&Y &R$GY &VD?T" !*@$YU1_D 9<&AMG!F$ M_YI@]F$ "A@ @80 ($AY %DC\\ E.05R//SP C\\ ).35B/0F=. M03\Y %LC\\ #Y.05B/3G4O"#\\ E.05R/2D-F,G90/SP C\\ ).35B/ M2$ , <9@1"%$YU2$ 8P#\ /SP !3\\ -.35R/42]N*3\@ T*"5=I9'1H(&]F(&QE9G0@;6%R9VEN.B @ T*"5-K M:7 @;W9E2]N*3\@ T*"5-E;F0@8V]N=')O;"!C M;V1E2]N*3\@ T*"4-H87)A8W1E_ end