Path: 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 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