Path: utzoo!mnetor!uunet!husc6!bbn!mit-eddie!uw-beaver!cornell!batcomputer!itsgw!steinmetz!galen!leue From: leue@galen.steinmetz Newsgroups: comp.sys.mac Subject: Using Printer with LSC Message-ID: <9847@steinmetz.steinmetz.UUCP> Date: 8 Mar 88 15:39:04 GMT Sender: news@steinmetz.steinmetz.UUCP Reply-To: leue@galen.UUCP (Bill Leue) Organization: General Electric Research & Development Lines: 35 Keywords: LSC, printer I am attempting to use the Imagewriter I connected to the printer port as a debugging tool in connection with a small application I am writing using Lightspeed C Rev 2.11. I have been successful in getting output to the printer, but cannot get the paper to advance. Here is the relevant code fragment: #include "stdio.h" . . FILE *pfile; . . pfile = fopen(".BOut", "a"); . . fprintf(pfile, "Hello, World\n"); fprintf(pfile, "This is the next line\n"); . . fclose(pfile); . . The symptoms are that all the output is printed, but each succeeding line of text overwrites the last one -- that is, the paper never advances. The standard switch settings are used on the Imagewriter, and all standard Mac applications print fine. I have tried several workarounds: * replacing the "\n" with "\012\015" * using the escape code to force one or more line feeds * turning on automatic line feed mode Nothing works. Any suggestions? -Bill Leue leue@ge-crd.arpa uunet!steinmetz!nmr!leue