home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13251 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!pooler
  3. From: pooler@marcus.its.rpi.edu (Robert Peter Poole)
  4. Subject: Re: sending escape codes to printer
  5. Message-ID: <ry6y=4p@rpi.edu>
  6. Keywords: printing escape codes amiga
  7. Nntp-Posting-Host: marcus.its.rpi.edu
  8. Organization: Rensselaer Polytechnic Institute, Troy, NY
  9. References: <1992Aug31.052400.15097@cs.UAlberta.CA>
  10. Date: Fri, 11 Sep 1992 06:25:01 GMT
  11. Lines: 22
  12.  
  13.  
  14. Your code reads thus:
  15.  
  16.     FILE *printer;
  17.  
  18.     printer=fopen("prt:","w");
  19.  
  20.     fputs("\033\170\060"); /* send an escape sequence to printer */
  21.  
  22. Try using "par:" instead of "prt:".  The reason for this is that the Amiga
  23. operating system intercepts escape sequences and control codes that are sent
  24. to prt: and converts them according to how your particular printer driver
  25. is set up.  Or it may simply strip out the escape sequences altogether.
  26.  
  27. Since par: is a direct means of accessing the parallel port without
  28. translation, that is your best bet.
  29.  
  30. Hope this helps.
  31.  
  32. Robert Poole
  33. pooler@rpi.edu
  34. pooler@cs.rpi.edu
  35.