🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #34685

Printing very long lines

#34685
From: Scott Flinn
Date: Wed, 26 Oct 1988 21:19
27 lines
1778 bytes
     Many months ago, I grabbed a ~130K text file from rec.arts.startrek
which, when printed properly, is a picture of the Enterprise.  I
have printed this without any problem using the standard desktop
utility (ie. double click on non-program file and select PRINT),
and using the 'cat' command inside MWC microshell (msh).  No
problems yet.

   The trick is that the picture is enhanced by printing each line
3 times, which produces many overstruck characters.  My own naive
attempt to print this picture (basically using fgetc() and fputc(),
or fgets() and fputs(), Bconout(), etc.) fails miserably.  It prints the
first pass of the line, some x's at the right and left margin, and
ignores the remaining characters.  Each line in the file has >200
characters ... the characters which are overstruck on each line
are simply separated by spaces (ascii 32's), not '\r's ... and each
line ends with '\n'.  What are the printing programs doing with
these lines.  Are they breaking them into 3 smaller '\r' separated
lines (how do they know the line length)?  I'm lost ... help.
Incidentally, the picture must be printed in 132 column mode.

     I eagerly anticipate the excrutiating embarrassment of a reply.
--------------------------------------------------------------------
Scott Flinn:  one of these may work   wsflinn@violet.waterloo.edu
				      wsflinn@violet.waterloo.cdn
				      wsflinn@violet.uwaterloo.ca
				      watmath!violet!wsflinn
Technical Details
Message-ID: <9328@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!violet!wsflinn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!violet!wsflinn
From: wsflinn@violet.waterloo.edu (Scott Flinn)
Newsgroups: comp.sys.atari.st
Subject: Printing very long lines
Message-ID: <9328@watdragon.waterloo.edu>
Date: 26 Oct 88 21:19:44 GMT
Sender: daemon@watdragon.waterloo.edu
Lines: 27