home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!pooler
- From: pooler@marcus.its.rpi.edu (Robert Peter Poole)
- Subject: Re: sending escape codes to printer
- Message-ID: <ry6y=4p@rpi.edu>
- Keywords: printing escape codes amiga
- Nntp-Posting-Host: marcus.its.rpi.edu
- Organization: Rensselaer Polytechnic Institute, Troy, NY
- References: <1992Aug31.052400.15097@cs.UAlberta.CA>
- Date: Fri, 11 Sep 1992 06:25:01 GMT
- Lines: 22
-
-
- Your code reads thus:
-
- FILE *printer;
-
- printer=fopen("prt:","w");
-
- fputs("\033\170\060"); /* send an escape sequence to printer */
-
- Try using "par:" instead of "prt:". The reason for this is that the Amiga
- operating system intercepts escape sequences and control codes that are sent
- to prt: and converts them according to how your particular printer driver
- is set up. Or it may simply strip out the escape sequences altogether.
-
- Since par: is a direct means of accessing the parallel port without
- translation, that is your best bet.
-
- Hope this helps.
-
- Robert Poole
- pooler@rpi.edu
- pooler@cs.rpi.edu
-