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: A program to print files, expanding tabs Message-ID: <2017@batcomputer.tn.cornell.edu> Date: Wed, 14-Jan-87 00:41:57 EST Article-I.D.: batcompu.2017 Posted: Wed Jan 14 00:41:57 1987 Date-Received: Wed, 14-Jan-87 19:01:56 EST Reply-To: braner@batcomputer.UUCP (braner) Organization: Theory Center, Cornell University, Ithaca NY Lines: 35 Summary: uuencoded binary [] Many printers don't know how to handle tab characters (ASCII 9), or at least require that you set up tab stops explicitly. A pain when you want a quick printout of, say, a program listing. Here is a little utility that will expand tabs to spaces and print the file. It assumes a tab stop every 8 columns. Note that embedded control characters (besides cr/lf and tabs) will confuse the column count for the rest of that line. Note that this program replaces "lpr.ttp" (in micro-C-Shell). - Moshe Braner ~~~~~~~~~~~~~~~~~~~ cut here ~~~~~~~~~~~~~~~~~~~ begin 644 PRINT.TOS M8!H *" "IO 0@/ * O "\-0F<_ M/ !*3D'?_ Q*@&8 61(>0 CH_/ )3D%0 K@_/ :3D% # 4 M"F 0 N0O/ ) _.0 M H(_/ _3D'?_ Q*@&L ")G >D;D +21?D +D1_(( $J 3G5A M H8 (&$ "!(>0 FD_/ )3D%
80 $! \ IA (0C1( $YU/P _ M/ "/SP TY-7(].=0T*"D5N=&5R(&YA;64@;V8@9FEL92!T;R!P