Article View: comp.sys.atari.st
Article #24478Re: A program to print files, expanding tabs
From: braner
Date: Thu, 15 Jan 1987 06:11
Date: Thu, 15 Jan 1987 06:11
72 lines
3952 bytes
3952 bytes
[]
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 <Return> (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 <Esc>.
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 4<G_Z$(48 XA =4T$,
M !39P8, !S9@A7^0 !:Q@W@P $-G!@P &-F"%?Y %KF#*# 36<&
M# ;6:^80 #UF"X0?D 2:2?D 6X=E!A +R0?D 2\2?D 8*=E!A
M +@$!0, !99P8, !Y9AQ!^0 !-U)^0 !@IV4&$ L!+^0 !@IA .&
M0?D 3X2?D 8*=E!A *D$!0, !95_D 6L9PH, !Y5_D 6L0?D
M 492?D 8*=E!A )Z$!0, !95_D 6N9PH, !Y5_D 6N0CD 8*
M0CD 9<2GD 6N9R1!^0 !3I)^0 !@I"0V$ CQ!^0 !55)^0 !EQ"
M0V$ BI(>0 !JX_/ :3D%<CT)G2'D 6X/SP 3DY!4(]*0&8 =A"9TAY
M %N#\\ #U.05"/2D!K '",\ 6R1_D 8*&AMG!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@<')E<&5N9#H@ T*
M"4-H87)A8W1E<G,@=&\@(&%P<&5N9#H@ T*"@E0<F5S<R \17-C/B!T;R!S
M=&]P('!R:6YT:6YG( -"@H)5$]3(&5R<F]R(&]C8W5R<F5D(2 "0&
M!A X%!H&# 8:!@P*!A(,!@82# 8&!@@&# 8,$!84!A &!@8&$$0<1 8<"@H(
+(!X*#!P&#AP>_
end
Technical Details
Message-ID:
<2033@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!cornell!batcomputer!branerReferences:
<2017@batcomputer.tn.cornell.edu>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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